Pylint settings
This commit is contained in:
parent
be932ea9c4
commit
a99b81b0c7
12 changed files with 140 additions and 3 deletions
dockge_cli/models
|
@ -1,6 +1,9 @@
|
|||
from enum import Enum
|
||||
|
||||
class StackStatus(Enum):
|
||||
"""
|
||||
mapping codes for status vs text
|
||||
"""
|
||||
# pylint: disable=invalid-name
|
||||
inactive = 1
|
||||
running = 3
|
||||
|
|
|
@ -2,6 +2,9 @@ from typing import Callable
|
|||
from pydantic import BaseModel
|
||||
|
||||
class Command(BaseModel):
|
||||
"""
|
||||
Basic command structure for the CLI to automatically generate valid commands
|
||||
"""
|
||||
cmd: str
|
||||
bind: Callable
|
||||
args: int
|
||||
|
|
|
@ -2,9 +2,15 @@ import argparse
|
|||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class Arguments(argparse.Namespace):
|
||||
"""
|
||||
Default Arguments when calling the CLI
|
||||
"""
|
||||
command: str
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
class Credentials(argparse.Namespace):
|
||||
"""
|
||||
Special Argument Namespace for login credentials of the login commands
|
||||
"""
|
||||
username: str
|
||||
password: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue