subxt-cli 0.50.1

Command line utilities for working with subxt codegen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser as ClapParser;

/// Prints version information
#[derive(Debug, ClapParser)]
pub struct Opts {}

pub fn run(_opts: Opts, output: &mut impl std::io::Write) -> color_eyre::Result<()> {
    let git_hash = env!("GIT_HASH");
    writeln!(
        output,
        "{} {}-{}",
        clap::crate_name!(),
        clap::crate_version!(),
        git_hash
    )?;
    Ok(())
}