Expand description
Command-line interface components and argument parsing.
This module provides the complete CLI structure for the Claude Code Toolkit,
including command definitions, argument parsing, and subcommand organization.
Built using the clap crate with derive macros for clean, maintainable
command definitions.
§Command Structure
The CLI is organized into several main command groups:
- Status & Monitoring:
status,timer- Session information and real-time monitoring - Organization Management:
org add/remove/list- GitHub organization configuration - Repository Management:
repo add/remove/list- Individual repository setup - Synchronization:
sync,sync force,sync status- Credential sync operations - Service Management:
service install/start/stop/restart- Daemon lifecycle - Configuration:
configure- Interactive setup wizard
§Usage Examples
§Basic Status Commands
# Check current session and sync status
claude-code-toolkit status
# Show real-time session timer
claude-code-toolkit timer§Organization and Repository Management
# Add GitHub organization for automatic sync
claude-code-toolkit org add my-organization
# Add specific repository
claude-code-toolkit repo add owner/repository-name
# List configured targets
claude-code-toolkit org list
claude-code-toolkit repo list§Credential Synchronization
# Smart sync (only if credentials changed)
claude-code-toolkit sync
# Force sync to all targets
claude-code-toolkit sync force
# Check sync status across all targets
claude-code-toolkit sync status
# View recent sync logs
claude-code-toolkit sync logs --lines 100§Daemon Service Management
# Install and start background service
claude-code-toolkit service install
# Control service lifecycle
claude-code-toolkit service start
claude-code-toolkit service stop
claude-code-toolkit service restart
# Remove service (keeping config)
claude-code-toolkit service uninstall --keep-config§Command Documentation
Each command and subcommand includes comprehensive help text accessible via:
claude-code-toolkit --help
claude-code-toolkit org --help
claude-code-toolkit sync --helpModules§
Structs§
- Cli
- Main CLI structure for the Claude Code Toolkit.
Enums§
- Commands
- Available top-level commands for the Claude Code Toolkit.
- OrgCommands
- GitHub organization management commands.
- Repo
Commands - GitHub repository management commands.
- Service
Commands - Background service management commands.
- Sync
Commands - Credential synchronization commands.