mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
work
This commit is contained in:
+4
-2
@@ -1,12 +1,14 @@
|
||||
from contextlib import redirect_stdout
|
||||
import io
|
||||
import string
|
||||
|
||||
|
||||
while True:
|
||||
with redirect_stdout(io.StringIO()) as f:
|
||||
a = input('rgsert')
|
||||
a = input()
|
||||
print(a)
|
||||
res = f.getvalue()
|
||||
res = ''.join([x for x in res if x in string.printable])
|
||||
print('-'*len(res))
|
||||
print(res.replace('\n', ''))
|
||||
print(res.strip('\n'))
|
||||
print('-'*len(res))
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from rich.console import Console
|
||||
|
||||
from argenta.command import Command
|
||||
from argenta.command.flag import Flags, InputFlags
|
||||
from argenta.command.flag import Flags, InputFlags, Flag
|
||||
from argenta.command.flag.defaults import PredeterminedFlags
|
||||
from argenta.router import Router
|
||||
from .handlers_implementation.help_command import help_command
|
||||
@@ -15,15 +15,18 @@ settings_router: Router = Router(title='Settings points:')
|
||||
|
||||
console = Console()
|
||||
|
||||
flag = Flag('test')
|
||||
|
||||
@work_router.command(Command(trigger='0', description='Get Help'))
|
||||
|
||||
@work_router.command(Command(trigger='0',
|
||||
description='Get Help'))
|
||||
def command_help():
|
||||
help_command()
|
||||
|
||||
|
||||
@work_router.command(Command(trigger='S', description='Start Solving', flags=Flags(PredeterminedFlags.HOST, PredeterminedFlags.PORT)))
|
||||
@work_router.command(Command(trigger='S', description='Start Solving', flags=Flags(PredeterminedFlags.HOST, PredeterminedFlags.PORT, flag)))
|
||||
def command_start_solving(args: InputFlags):
|
||||
print(args.get_flags())
|
||||
print(args.get_flag('test'))
|
||||
|
||||
|
||||
@settings_router.command(Command(trigger='U', description='Update WordMath'))
|
||||
|
||||
Reference in New Issue
Block a user