13 lines
269 B
Python
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
|