mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
cli module creating
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
from typer import Typer
|
||||
|
||||
from .commands import run_handler
|
||||
|
||||
|
||||
def main():
|
||||
print(f'run from {__name__}')
|
||||
print('hello world')
|
||||
app = Typer()
|
||||
app.command("run")(run_handler)
|
||||
app.command("init")(run_handler)
|
||||
app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user