dockge-cli/dockge_cli/models/commands.py
Firq a99b81b0c7
All checks were successful
/ pylint (push) Successful in 11s
/ mypy (push) Successful in 13s
Pylint settings
2024-07-05 16:05:35 +02:00

13 lines
269 B
Python

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
optional: bool
description: str