git flow was a mistake #11
3 changed files with 20 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
#+title: Roadmap
|
||||
|
||||
* 0.2.1
|
||||
- [ ] jumps
|
||||
* 0.2.0 (maybe)
|
||||
- [X] Links in categories?
|
||||
- [X] Fix category with no links
|
||||
|
|
15
src/cli.rs
15
src/cli.rs
|
@ -109,4 +109,19 @@ pub enum Commands {
|
|||
/// Perform a git commit in all repositories, with predefined message
|
||||
#[command(visible_alias = "m")]
|
||||
CommitMsg { msg: Option<String> },
|
||||
|
||||
/// Jump to a given object
|
||||
#[command(subcommand, visible_alias = "j")]
|
||||
Jump(JumpCommands),
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
pub enum JumpCommands {
|
||||
/// Jump to repo
|
||||
#[command(visible_alias = "r")]
|
||||
Repo { name: Option<String> },
|
||||
|
||||
/// Jump to link
|
||||
#[command(visible_alias = "l")]
|
||||
Link { name: Option<String> },
|
||||
}
|
||||
|
|
|
@ -107,6 +107,9 @@ fn main() {
|
|||
Some(Commands::CommitMsg { msg }) => {
|
||||
config.commit_all_msg(msg.as_ref().expect("failed to get message from input"));
|
||||
}
|
||||
Some(Commands::Jump(_)) => {
|
||||
todo!();
|
||||
}
|
||||
None => (),
|
||||
}
|
||||
trace!("{:?}", config);
|
||||
|
|
Loading…
Reference in a new issue