Moved files, refactored calls, added credentials warning
This commit is contained in:
parent
58aea47921
commit
c00aa232fc
5 changed files with 23 additions and 24 deletions
dockge_cli/client/commands
|
@ -39,6 +39,7 @@ class FunctionBindings():
|
|||
"""
|
||||
login command binding
|
||||
"""
|
||||
print(f"WARNING! These credentials will be saved unencrypted in {storage._file.absolute()}")
|
||||
if len(extra_args) > 0:
|
||||
credentials = credential_parser_factory().parse_args(extra_args, namespace=Credentials)
|
||||
storage.put("username", credentials.username, encoded=True)
|
||||
|
@ -76,8 +77,6 @@ class FunctionBindings():
|
|||
"""
|
||||
status command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
status_formatter(con.list_stack(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
@ -87,8 +86,6 @@ class FunctionBindings():
|
|||
"""
|
||||
restart command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
generic_formatter(con.restart(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
@ -98,8 +95,6 @@ class FunctionBindings():
|
|||
"""
|
||||
update command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
generic_formatter(con.update(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
@ -109,8 +104,6 @@ class FunctionBindings():
|
|||
"""
|
||||
stop command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
generic_formatter(con.stop(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
@ -120,8 +113,6 @@ class FunctionBindings():
|
|||
"""
|
||||
start command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
generic_formatter(con.start(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
@ -131,8 +122,6 @@ class FunctionBindings():
|
|||
"""
|
||||
down command binding
|
||||
"""
|
||||
if extra_args is None:
|
||||
raise ValueError
|
||||
con = FunctionBindings.__setup()
|
||||
generic_formatter(con.down(extra_args[0]))
|
||||
con.disconnect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue