first beta - adding hints for similar commands, now - feature freezing

This commit is contained in:
2025-05-04 02:13:05 +03:00
parent 5a17e916eb
commit 83955aa046
7 changed files with 58 additions and 36 deletions
+2 -8
View File
@@ -11,13 +11,7 @@ from argenta.router import Router
from argenta.orchestrator import Orchestrator
from argenta.command.models import InputCommand
from argenta.app.utils import most_similar_command
while True:
cmd = input(">>> ")
if cmd == "exit":
break
else:
parse_cmd: InputCommand = InputCommand.parse(cmd)
print(f'name: {parse_cmd.get_trigger()}\n'
f'flags: {parse_cmd.get_input_flags().get_flags()}\n')
print(most_similar_command('case', ['case', 'tester', 'poster', 'caser']))