Compare commits
3 Commits
41d5e49c4f
...
eb7858be7c
Author | SHA1 | Date | |
---|---|---|---|
|
eb7858be7c | ||
018e0ece7e | |||
0dd339dfc5 |
20
CHANGELOG.md
Normal file
20
CHANGELOG.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.1.1] - 2024-09-12
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
- add readme
|
||||||
|
|
||||||
|
## [0.1.0] - 2024-09-12
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- init
|
||||||
|
|
||||||
|
### Docs
|
||||||
|
- test
|
@ -3,7 +3,7 @@ members = ["crates/*"]
|
|||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
gitnow = { path = "crates/gitnow" }
|
gitnow = { path = "crates/gitnow" }
|
||||||
|
16
README.md
16
README.md
@ -1,4 +1,20 @@
|
|||||||
# Git Now
|
# 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 `<project>`
|
||||||
|
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.
|
||||||
|
@ -2,7 +2,7 @@ use anyhow::Context;
|
|||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[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 {
|
struct Command {
|
||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
command: Option<Commands>,
|
command: Option<Commands>,
|
||||||
@ -21,8 +21,9 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
let cli = Command::parse();
|
let cli = Command::parse();
|
||||||
tracing::debug!("Starting cli");
|
tracing::debug!("Starting cli");
|
||||||
|
|
||||||
if let Some(Commands::Hello {}) = cli.command {
|
match cli.command {
|
||||||
println!("Hello!")
|
Some(_) => todo!(),
|
||||||
|
None => todo!(),
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -13,3 +13,5 @@ please:
|
|||||||
branch: "main"
|
branch: "main"
|
||||||
settings:
|
settings:
|
||||||
api_url: "https://git.front.kjuulh.io"
|
api_url: "https://git.front.kjuulh.io"
|
||||||
|
actions:
|
||||||
|
rust:
|
||||||
|
Loading…
Reference in New Issue
Block a user