diff --git a/README.md b/README.md index 7affe75..a7e9234 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,20 @@ # Git Now +Git Now is a utility for easily navigating git projects from common upstream providers. Search, Download, and Enter projects as quickly as you can type. +How many steps do you normally do to download a project? +1. Navigate to github.com +2. Search in your org for the project +3. Find the clone url +4. Navigate to your local github repositories path +5. Git clone `` +6. Enter new project directory + +A power user can of course use `gh repo clone` to skip a few steps. + +With gitnow + +1. `git now` +2. Enter parts of the project name and press enter +3. Your project is automatically downloaded if it doesn't exist in an opinionated path dir, and move you there. diff --git a/crates/gitnow/src/main.rs b/crates/gitnow/src/main.rs index 76c83b8..54961c7 100644 --- a/crates/gitnow/src/main.rs +++ b/crates/gitnow/src/main.rs @@ -2,7 +2,7 @@ use anyhow::Context; use clap::{Parser, Subcommand}; #[derive(Parser)] -#[command(author, version, about, long_about = None, subcommand_required = true)] +#[command(author, version, about, long_about = Some("Navigate git projects at the speed of thought"))] struct Command { #[command(subcommand)] command: Option, @@ -21,8 +21,9 @@ async fn main() -> anyhow::Result<()> { let cli = Command::parse(); tracing::debug!("Starting cli"); - if let Some(Commands::Hello {}) = cli.command { - println!("Hello!") + match cli.command { + Some(_) => todo!(), + None => todo!(), } Ok(()) diff --git a/cuddle.yaml b/cuddle.yaml index fbbaa92..2b62582 100644 --- a/cuddle.yaml +++ b/cuddle.yaml @@ -13,3 +13,5 @@ please: branch: "main" settings: api_url: "https://git.front.kjuulh.io" + actions: + rust: