Skip to main content

Crate snip_it

Crate snip_it 

Source
Expand description

Library for the snp snippet manager.

Most of the implementation lives in submodules that are also used by the snp binary entry point in src/main.rs. The library is also re-exported so that integration tests under tests/ can exercise the public API (notably sync::SyncClient and the proto types) against a real snip-sync server.

Re-exports§

pub use error::SnipError;
pub use error::SnipResult;

Modules§

commands
CLI command implementations.
config
Configuration management for snp sync.
encryption
Encryption utilities for secure sync.
error
Error types and handling for snp.
logging
Logging infrastructure using the tracing crate.
proto
sync
gRPC sync client for communicating with snip-sync server.
ui
Terminal user interface for snippet selection.

Structs§

SnippetData
Aggregated data for all snippets passed to the TUI selector.

Enums§

ProcessResult
Result of processing a snippet selection from the TUI.