More commands

This commit is contained in:
Firq 2024-07-02 21:45:56 +02:00
parent 0c884e01cf
commit 84571f1692
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 68 additions and 12 deletions
dockge_cli/models

View file

@ -34,6 +34,21 @@ cmd_restart = CommandListing(
description="Restarts a given stack",
)
cmd_start = CommandListing(
command="start",
description="Starts a given stack",
)
cmd_stop = CommandListing(
command="stop",
description="Stops a given stack",
)
cmd_down = CommandListing(
command="down",
description="Stop & Downs a given stack",
)
cmd_update = CommandListing(
command="update",
description="Updates a stack",
@ -54,5 +69,5 @@ cmd_help = CommandListing(
description="Displays helping hints for commands",
)
commandlist = [cmd_host, cmd_login, cmd_logout, cmd_list, cmd_restart, cmd_update, cmd_exit, cmd_debug, cmd_help, cmd_status]
commandlist = [cmd_host, cmd_login, cmd_logout, cmd_list, cmd_restart, cmd_update, cmd_exit, cmd_debug, cmd_help, cmd_status, cmd_start, cmd_stop, cmd_down]
commands = { k.command: k for k in commandlist }