Rust wrapper around the Go sbotcli Scuttlebutt tool.
Go to file
glyph e8e31cf9ce Merge pull request 'Refactor to use an object-oriented pattern for Sbot' (#2) from sbot_object into main
Reviewed-on: PeachCloud/peach-sbotcli#2
2021-11-05 10:45:04 +00:00
src error module doc comment 2021-11-05 11:01:47 +02:00
.gitignore docs, errors and basic api 2021-11-03 15:52:35 +02:00
Cargo.toml add dirs dependency 2021-11-04 16:57:48 +02:00
README.md update code example 2021-11-04 16:58:12 +02:00

README.md

peach-sbotcli

Rust wrapper around the Go sbotcli ScuttleButt tool (cryptoscope/ssb), allowing interaction with a gosbot instance.

Example

use peach_sbotcli::{Sbot, SbotCliError};

fn example() -> Result<(), SbotCliError> {
    // uses default paths for `sbotcli` and `go-sbot` working directory
    let sbot = Sbot::init(None, None)?;

    let id = "@p13zSAiOpguI9nsawkGijsnMfWmFd5rlUNpzekEE+vI=.ed25519";

    let follow_ref = sbot.follow(id)?;
    let block_ref = sbot.block(id)?;

    let invite_code = sbot.create_invite()?;

    Ok(())
}

Documentation

Use cargo doc to generate and serve the Rust documentation for this library:

git clone https://git.coopcloud.tech/PeachCloud/peach-sbotcli.git
cd peach-sbotcli
cargo doc --no-deps --open

License

AGPL-3.0