musket 0.14.0

Musket is a command line interface to send a URL to several destinations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{
    config,
    destinations::{turso::Turso, Destination},
    errors::*,
};

pub async fn execute(
    cfg: &config::Configuration,
    url: &str,
    vector_of_tags: &[String],
) -> Result<String, MusketError> {
    let turso = Turso {
        url: cfg.turso.url.to_string(),
        token: cfg.turso.token.to_string(),
    };
    turso.fire(url, vector_of_tags).await?;
    Ok(format!("The url \"{}\" has been sent to Turso.", url))
}