git-semver-tags 0.0.12

Get all git semver tags of your repository in reverse chronological order
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use git_semver_tags::{captures, Args};
#[cfg(feature = "self_upgrade")]
use git_semver_tags::{self_upgrade, Commands};

fn main() {
    let args = Args::parse();
    match &args.command {
        #[cfg(feature = "self_upgrade")]
        Some(Commands::Upgrade) => self_upgrade(false).expect("upgrade success"),
        _ => {
            for tag in captures(args).iter() {
                println!("{}", tag);
            }
        }
    }
}