Skip to main content

git_stk/commands/
top.rs

1use anyhow::Result;
2
3use crate::commands::Run;
4
5/// Move to the top of the stack: check out its leaf branch.
6#[derive(Debug, clap::Args)]
7pub struct Top {}
8
9impl Run for Top {
10    fn run(self) -> Result<()> {
11        crate::stack::checkout_top()
12    }
13}