slidedeckai.cli#


Command-line interface for SlideDeck AI.

format_model_help

Format model choices as a grouped bulleted list for help text.

format_models_as_bullets

Format models as a bulleted list, grouped by provider.

format_models_list

Format the models list in a nice grouped format with descriptions.

group_models_by_provider

Group model names by their provider.

main

The main function for the CLI.

CustomArgumentParser

Custom argument parser that formats error messages better.

CustomHelpFormatter

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: ArgumentParser

Custom argument parser that formats error messages better.

error(message: str) None[source]#

Custom error handler that formats model choices better

class slidedeckai.cli.CustomHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]#

Bases: HelpFormatter

Custom 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.

slidedeckai.cli.group_models_by_provider(models: list[str]) dict[str, list[str]][source]#

Group model names by their provider.

Parameters:

models (list[str]) – List of model names.

Returns:

Dictionary mapping provider codes to lists of model names.

Return type:

dict[str, list[str]]

slidedeckai.cli.main()[source]#

The main function for the CLI.