dockge-cli/dockge_cli/models/command.py

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
func: Callable
args: int
optional: bool
description: str