tinywasm-cli 0.9.0-alpha.1

Minimal command-line interface for TinyWasm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::io;

use clap::CommandFactory;
use eyre::Result;

use crate::cli::{Cli, CompletionArgs};

pub fn run(args: CompletionArgs) -> Result<()> {
    let mut cmd = Cli::command();
    clap_complete::generate(args.shell, &mut cmd, "tinywasm", &mut io::stdout());
    Ok(())
}