Skip to main content

git_stk/commands/
new.rs

1use anyhow::Result;
2
3use crate::commands::Run;
4
5/// Create a new child branch from the current branch.
6#[derive(Debug, clap::Args)]
7pub struct New {
8    branch: String,
9}
10
11impl Run for New {
12    fn run(self) -> Result<()> {
13        crate::stack::create_branch(&self.branch)
14    }
15}