cligram.cli

CLI entry point.

cligram.cli.callback(ctx, config=<typer.models.OptionInfo object>, verbose=<typer.models.OptionInfo object>, overrides=<typer.models.OptionInfo object>)[source]

CLI context setup.

cligram.cli.export(ctx, output=<typer.models.ArgumentInfo object>, password=<typer.models.OptionInfo object>, no_config=<typer.models.OptionInfo object>, export_dotenv=<typer.models.OptionInfo object>, exported_sessions=<typer.models.OptionInfo object>, exported_states=<typer.models.OptionInfo object>, all_sessions=<typer.models.OptionInfo object>, all_states=<typer.models.OptionInfo object>, all_data=<typer.models.OptionInfo object>)[source]

Export cligram data.

cligram.cli.import_data(ctx, input=<typer.models.ArgumentInfo object>, base64=<typer.models.OptionInfo object>, password=<typer.models.OptionInfo object>)[source]

Import cligram data.

cligram.cli.info()[source]

Display information about cligram and current environment.

cligram.cli.init(ctx)[source]

Initialize core components based on CLI context.

Once this function is called, the pre-init stage is over, configuration is guaranteed to be loaded, logger is set up, and ready for use.

Returns:

Loaded configuration instance.

Return type:

Config

cligram.cli.init_app(ctx)[source]

Safely initialize the main application instance.

Ensures the core is initialized, then Initialize the main application instance based on CLI context.

Returns:

Initialized application instance.

Return type:

Application

cligram.cli.interactive(ctx, session=<typer.models.OptionInfo object>)[source]

Run the application in interactive mode.

cligram.cli.main()[source]

Main entry point for the CLI.