claudewheel v0.15.1 /claudewheel.cli
Edit
On this page

main() function with strictcli for claudewheel CLI.

#claudewheel.cli

#claudewheel.cli

CLI argument parsing, subcommand routing, and launch orchestration.

#_do_uninstall

python
def _do_uninstall(version: str) -> int

Delete an installed Claude Code version binary.

Refuses to delete the version the claude symlink currently points to, since that would break the default claude command. Returns a process exit code.

#_do_reset_options

python
def _do_reset_options() -> int

Delete OPTIONS_FILE so it regenerates from defaults on next run.

Does NOT instantiate ConfigManager -- the next normal run will recreate options.json via _ensure_dir. Idempotent: missing file is not an error.

#_do_show

python
def _do_show(cfg: object) -> int

Print a git-status-like summary of last_config, segments, theme, and recent dirs.

#_do_launch_sequence

python
def _do_launch_sequence(cfg: object, selections: dict, extra_flags: list[str] | None=None, interactive: bool=True, metadata: dict[str, dict[str, dict]] | None=None) -> None

Run health check, hooks, save state, resolve, and exec. Does not return on success.

#_check_resume_session

python
def _check_resume_session(session_id: str, directory: str) -> None

Intercept --resume to detect and offer to fix directory renames.

When a session exists under an old encoded path (because the project directory was renamed), this function detects the mismatch and offers to move all sessions to the new path via run_mv.

Returns normally when no interception is needed (session found under current directory, or sessions successfully moved). Calls sys.exit(1) when the session cannot be resumed from here.

#_check_cont_session

python
def _check_cont_session(directory: str) -> None

Intercept --cont to detect and offer to fix directory renames.

When the current directory has no sessions but an orphaned project directory exists under the same parent (original cwd no longer on disk), this function offers to move those sessions to the current directory via run_mv.

#_build_app

python
def _build_app() -> App

Build the strictcli App with all subcommands registered.

#main

python
def main() -> None

CLI entry point that parses arguments and dispatches to subcommands or the TUI.