standard-plugin-cli 0.1.1

standard-plugin: scaffold, build, check and pack Standard Code plugins
Documentation
1
2
3
4
5
6
7
8
9
10
//! `cargo standard-plugin ...`: Cargo runs this binary with the subcommand
//! name (`standard-plugin`) as the first argument; drop it.

fn main() -> std::process::ExitCode {
    let mut args: Vec<std::ffi::OsString> = std::env::args_os().collect();
    if args.get(1).is_some_and(|arg| arg == "standard-plugin") {
        args.remove(1);
    }
    standard_plugin_cli::run(args)
}