Spaces:
Runtime error
Runtime error
File size: 301 Bytes
077dc3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import fire
from configue import load
class CLI:
"""Regroup all the commands of the CLI
"""
@staticmethod
def run(config_path: str) -> None:
config = load(config_path)
command = config["command"]
command.run()
if __name__ == "__main__":
fire.Fire(CLI)
|