Refactor, typing improvements, ci improvements
This commit is contained in:
parent
d3e5d4ae56
commit
e44fd8a7a5
9 changed files with 141 additions and 107 deletions
dockge_cli/models
|
@ -1 +1,3 @@
|
|||
from .codes import StackStatus
|
||||
from .commands import Command
|
||||
from .parser import Arguments, Credentials
|
||||
|
|
9
dockge_cli/models/commands.py
Normal file
9
dockge_cli/models/commands.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from typing import Callable
|
||||
from pydantic import BaseModel
|
||||
|
||||
class Command(BaseModel):
|
||||
cmd: str
|
||||
bind: Callable
|
||||
args: int
|
||||
optional: bool
|
||||
description: str
|
Loading…
Add table
Add a link
Reference in a new issue