Skip to main content

gbm/
main.rs

1//! Prepare or execute a current Git branch rename.
2
3use crate::cmds::Cmd;
4
5mod cmds;
6
7#[ytil_sys::main]
8fn main() -> rootcause::Result<()> {
9    match Cmd::from_env()? {
10        Cmd::Help(help) => print!("{}", help.text()),
11        Cmd::Pick => cmds::pick::run()?,
12        Cmd::Install => cmds::install::run()?,
13        Cmd::InitZsh => cmds::init::run(),
14        Cmd::Rename(branch_name) => cmds::rename::run(&branch_name)?,
15    }
16    Ok(())
17}