Skip to main content

Crate hashiverse_cli

Crate hashiverse_cli 

Source
Expand description

§hashiverse-cli — command-line client for Hashiverse

Unlocks an identity (from a keyphrase, or from a key previously stored on disk under a client id + password) and then exposes posting, timeline reading and trending hashtags either as one-shot subcommands or as an interactive REPL.

The binary lives in main.rs; everything else is a library so the integration tests can drive the same code paths.

Modules§

cli_args
Command-line argument definitions.
commands
The CLI commands. Each takes a plain &HashiverseClient so the same code runs against the production client (via HashiverseBuilder) and against mem-transport clients in tests.
render
Turning command results into text or JSON for the terminal.
repl
Interactive prompt, used when hashiverse-cli is run without a command.
unlock
Deciding how to unlock an identity, and then unlocking it.