Skip to content

Commit

Permalink
we are now lazygh
Browse files Browse the repository at this point in the history
Signed-off-by: karan <[email protected]>
  • Loading branch information
KMJ-007 committed Sep 16, 2024
1 parent ab49ac9 commit 9018aba
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/target

# Oranda
oranda-debug.log
/public
cargo-dist/public
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "github-account-tui"
name = "lazygh"
version = "0.1.0"
authors = ["Karan Janthe <[email protected]>"]
license = "MIT"
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# github-account-tui
# LazyGH

This is a [Ratatui] app generated by the [Simple template].
LazyGH is a Terminal User Interface (TUI) application for managing multiple GitHub accounts easily. It allows you to switch between different Git configurations and SSH keys seamlessly.

[Ratatui]: https://ratatui.rs
[Simple Template]: https://github.com/ratatui/templates/tree/main/simple
## Demo

## License
Check out the demo to see LazyGH in action:

Copyright (c) Karan Janthe <[email protected]>
![LazyGH Demo](demo.gif)

This project is licensed under the MIT license ([LICENSE] or <http://opensource.org/licenses/MIT>)
## Features

[LICENSE]: ./LICENSE
- Manage multiple GitHub accounts
- Switch between accounts with ease
- Automatically update Git global configuration
- Generate and manage SSH keys for each account
- Copy SSH public keys to clipboard

## Installation

To install LazyGH, you need to have Rust and Cargo installed on your system. Then, you can clone this repository and build the project:
Binary file added demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions oranda.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"build": {
"path_prefix": "oranda"
},
"styles": {
"theme": "axodark",
"favicon": "https://www.axo.dev/favicon.ico"
},
"marketing": {
"social": {
"image": "https://www.axo.dev/meta_small.jpeg",
"image_alt": "axo",
"twitter_account": "@KaranJanthe"
}
},
"components": {
"changelog": true,
"artifacts": {
"package_managers": {
"preferred": {
"npm": "npm install @axodotdev/oranda --save-dev",
"cargo": "cargo install oranda --locked --profile=dist"
},
"additional": {
"npx": "npx @axodotdev/oranda",
"binstall": "cargo binstall oranda",
"nix-env": "nix-env -i oranda",
"nix flake": "nix profile install github:axodotdev/oranda"
}
}
}
}
}
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl App {
clipboard: Clipboard::new().expect("Failed to initialize clipboard"),
add_account_focus: AddAccountField::Name,
};
app.status_message = "Welcome to GitSwitch-Tui!".to_string();
app.status_message = "Welcome to LazyGH!".to_string();

// Set the active account index based on the current Git user
if let Ok(Some(current_user)) = get_current_user() {
Expand Down Expand Up @@ -199,7 +199,7 @@ impl App {
.block(
Block::default()
.borders(Borders::ALL)
.title("GitSwitch-Tui"),
.title("LazyGH"),
)
.select(self.current_tab as usize)
.style(Style::default().fg(Color::DarkGray))
Expand Down

0 comments on commit 9018aba

Please sign in to comment.