release v1.0.0a1

This commit is contained in:
2025-04-25 02:29:44 +03:00
parent 89f09c42f8
commit 9b2fc87e33
13 changed files with 194 additions and 81 deletions
-1
View File
@@ -1,5 +1,4 @@
from argenta.app import App
from argenta.app.defaults import PredefinedMessages
from argenta.orchestrator import Orchestrator
app = App(repeat_command_groups=True)
+10 -12
View File
@@ -1,15 +1,13 @@
import argparse
from argenta.command.flag.defaults import PredefinedFlags
router = Router()
flag = PredefinedFlags.SHORT_HELP
parser = argparse.ArgumentParser(prog='ProgramName',
description='What the program does',
epilog='Text at the bottom of help')
@router.command(Command('test', flags=flag))
def test(args: InputFlags):
print(f'help for {args.get_flag('h').get_name()} flag')
parser.add_argument('filename') # positional argument
parser.add_argument('-c', '--count') # option that takes a value
parser.add_argument('-v',
action='store_const')
args = parser.parse_args()
print(args)
print(args.filename, args.count, args.verbose)
app = App(override_system_messages=True,
print_func=print)
app.include_router(router)
app.run_polling()
-3
View File
@@ -1,10 +1,7 @@
from rich.console import Console
from argenta.command import Command
from argenta.command.flag import Flags, InputFlags
from argenta.command.flag.defaults import PredefinedFlags
from argenta.router import Router
from .handlers_implementation.help_command import help_command
work_router: Router = Router(title='Work points:')