slidedeckai.cli#
Command-line interface for SlideDeck AI.
Format model choices as a grouped bulleted list for help text. |
|
Format models as a bulleted list, grouped by provider. |
|
Format the models list in a nice grouped format with descriptions. |
|
Group model names by their provider. |
|
The main function for the CLI. |
|
Custom argument parser that formats error messages better. |
|
Custom formatter for argparse that improves the display of choices. |
Command-line interface for SlideDeck AI.
- class slidedeckai.cli.CustomArgumentParser(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True, exit_on_error=True)[source]#
Bases:
ArgumentParserCustom argument parser that formats error messages better.
- class slidedeckai.cli.CustomHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]#
Bases:
HelpFormatterCustom formatter for argparse that improves the display of choices.
- slidedeckai.cli.format_model_help() str[source]#
Format model choices as a grouped bulleted list for help text.
- slidedeckai.cli.format_models_as_bullets(models: list[str]) str[source]#
Format models as a bulleted list, grouped by provider.
- Parameters:
models (list[str]) – List of model names.
- Returns:
Formatted string of models.
- Return type:
str
- slidedeckai.cli.format_models_list() str[source]#
Format the models list in a nice grouped format with descriptions.