CLI API

Main CLI entry point for Continuity plugin.

class continuity.cli.main.ContinuityCLI(config=None)[source]

Main CLI application.

property core: ContinuityCore

Lazy-load the core when needed.

hello(name='World')[source]

Say hello - simple direct implementation.

Return type:

None

class continuity.cli.main.CustomGroup(*args, **kwargs)[source]

Custom Click group that shows our cached help for –help.

invoke(ctx)[source]

Check for –usage flag before normal invocation.

get_help(ctx)[source]

Override to show our full cached help.

continuity.cli.main.set_user_override(ctx, param, value)[source]

Set user override in environment if provided.

continuity.cli.main.main()[source]

Main entry point.

Return type:

None

Modular CLI commands for Continuity. Routes commands to specialized modules for better organization.

exception continuity.cli.commands.UserError(message, suggestion=None)[source]

User-friendly error with helpful suggestions.

continuity.cli.commands.parse_message_refs(ref, max_messages=10)[source]

Parse message references supporting ranges, lists, and ‘all’.

Return type:

List[int]

continuity.cli.commands.validate_message_ref(ref, max_messages=10)[source]

Validate and normalize message reference to number (legacy single reference).

Return type:

int

continuity.cli.commands.handle_user_error(func)[source]

Decorator to handle UserError exceptions gracefully.

continuity.cli.commands.register_commands(cli_group)[source]

Register all CLI commands by importing and calling modular registration functions.

Return type:

None