Skip to content

base_cli

Base CLI class for Eleanor CLI commands.

This module provides the base class for all Eleanor CLI commands. It defines the BaseCLI class, which serves as the foundation for creating new CLI command handlers

Attributes

Classes

BaseCLI

BaseCLI(config: str | None = None)

Eleanor CLI base class

CLI base class

Warning

An odd behavior with Fire has been observed where subclasses of BaseCLI take override __init__ and take parameters caus Fire to incorrectly identify self as a required CLI argument.

Parameters:

  • config (str, default: None ) –

    Path to configuration file

Functions

name abstractmethod classmethod
name() -> str

An abstract property that should be overridden to provide the CLI command name.