vyder 0.3.4

Create custom libraries for vyder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::{Arg, Command, ValueHint};

pub fn build_cli() -> Command {
    Command::new("vyder")
        .author("Silvan Schmidt <mail@silvanschmidt.ch>")
        .version(clap::crate_version!())
        .about(clap::crate_description!())
        .subcommand_required(true)
        .subcommand(
            Command::new("run").about("run a vyder script").arg(
                Arg::new("file_path")
                    .required(true)
                    .value_hint(ValueHint::FilePath)
                    .help("path to the script to run"),
            ),
        )
        .subcommand(Command::new("repl").about("start a repl"))
}