Skip to content

Commit

Permalink
rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-chinnasamy committed Jul 21, 2024
1 parent 1660588 commit ae6b9db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
str,
};

use crate::heimdall;
use crate::browser;

fn check_git() {
Command::new("git")
Expand Down Expand Up @@ -46,12 +46,12 @@ fn open_remote_url() {
let is_ssh = remote_url.starts_with("git@");

if is_http {
heimdall::open(remote_url.to_string());
browser::open(remote_url.to_string());
return;
}

if is_ssh {
heimdall::open(convert_ssh_to_https(remote_url));
browser::open(convert_ssh_to_https(remote_url));
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::{Parser, Subcommand};
mod alias;
mod browser;
mod git;
mod heimdall;

#[derive(Parser)]
#[command(name = "cliq", version, about, author, long_about = None)]
Expand Down Expand Up @@ -34,7 +34,7 @@ fn main() {
Commands::Options(args) => {
let input = args.join(" ");
let url = alias::link(input);
heimdall::open(url);
browser::open(url);
}
}
}

0 comments on commit ae6b9db

Please sign in to comment.