mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
21 lines
524 B
Python
21 lines
524 B
Python
from argenta.command import Flag, Flags, Command
|
|
|
|
# Simple command without flags
|
|
hello_cmd = Command("hello", description="Greet the user")
|
|
|
|
# Command with description and aliases
|
|
quit_cmd = Command("quit", description="Exit the application", aliases=["exit", "q"])
|
|
|
|
# Command with flags
|
|
deploy_cmd = Command(
|
|
"deploy",
|
|
description="Deploy application to server",
|
|
flags=Flags(
|
|
[
|
|
Flag("env", possible_values=["dev", "prod"]),
|
|
Flag("force"),
|
|
]
|
|
),
|
|
aliases=["dep"],
|
|
)
|