Snipt CLI
This crate provides the command-line interface for snipt, a text snippet expansion tool. It handles user commands for managing snippets, controlling the daemon, and launching the UI.
Features
- Command-Line Interface: Parse and execute user commands for managing snippets
- Interactive UI: Launch the TUI (Terminal User Interface) for snippet management
- Daemon Control: Start, stop, and check the status of the snipt daemon
- API Server Management: Control the HTTP API server for the Electron UI
CLI Commands
snipt: Launch the interactive TUI where you can manage all snippets and settingssnipt add: Add a new text snippetsnipt delete: Delete a text snippetsnipt update: Update an existing snippetsnipt new: Add a new snippet interactivelysnipt start: Start the daemon and API serversnipt stop: Stop the snipt daemonsnipt status: Check daemon statussnipt list: Display all snippets in a TUIsnipt serve: Start just the API serversnipt port: Show the API server portsnipt api-status: Check API server healthsnipt api-diagnose: Diagnose API server issues
Architecture
This crate integrates with other snipt components:
snipt-core: Core functionality for snippet managementsnipt-daemon: Daemon process that listens for keyboard eventssnipt-server: HTTP API server for the Electron UIsnipt-ui: Terminal user interface components
Development
Use cargo run to start the CLI in development mode. For usage examples, run cargo run -- --help.