Skip to content

Commit

Permalink
chore: optimize the log
Browse files Browse the repository at this point in the history
  • Loading branch information
luhc228 committed Jun 15, 2024
1 parent 63b7372 commit 8203373
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.1.2

- chore: optimize the clone log

## 0.1.1

- fix: `.ssh/config` file maybe not exists
Expand Down
2 changes: 1 addition & 1 deletion 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,6 +1,6 @@
[package]
name = "gitez"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
description = "Gitez is a CLI that simplifies managing your Git repositories."
license = "MIT"
Expand Down
7 changes: 7 additions & 0 deletions src/process/clone_repo.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::{run_piped_command, GitUrl, GlobalConfig};
use anyhow::Result;
use console::style;
use std::{
env,
path::{Path, PathBuf},
Expand All @@ -11,6 +12,12 @@ pub fn clone_repo(url: &str) -> Result<()> {
let repo_path: PathBuf = get_repo_local_path(&git_url, &global_config)?;

call_git_clone_command(url, &repo_path)?;
println!("\n🎉 Cloned repository Successfully!\n");
println!(
"You can enter the repository by running the command:\n\n{}",
style(format!("cd {}", repo_path.to_string_lossy())).bold().green()
);

Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion src/process/gen_ssh_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn gen_ssh_key() -> Result<()> {
add_ssh_host_to_config(ssh_dir, &host_config)?;

let rsa_pub = fs::read_to_string(rsa_pub_path)?;
println!("🔑 Public SSH Key:\n {}", rsa_pub);
println!("🔑 Public SSH Key:\n{}", rsa_pub);
println!("You can add this key to your git account");

Ok(())
Expand Down

0 comments on commit 8203373

Please sign in to comment.