spacetimedb-cli 0.1.2

A command line interface for SpacetimeDB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::ArgMatches;

use crate::config::Config;

pub fn cli() -> clap::Command<'static> {
    clap::Command::new("version")
        .about("Print the version of the command line tool.")
        .after_help("Run `stdb help version for more detailed information.\n`")
}

pub async fn exec(_config: Config, _args: &ArgMatches) -> Result<(), anyhow::Error> {
    println!("0.0.0");
    Ok(())
}