From ae6b9db3f395d045b6d68049d44e9be214228d8c Mon Sep 17 00:00:00 2001 From: Santhosh Chinnasamy Date: Sun, 21 Jul 2024 12:38:58 +0530 Subject: [PATCH] rename file --- src/{heimdall.rs => browser.rs} | 0 src/git.rs | 6 +++--- src/main.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/{heimdall.rs => browser.rs} (100%) diff --git a/src/heimdall.rs b/src/browser.rs similarity index 100% rename from src/heimdall.rs rename to src/browser.rs diff --git a/src/git.rs b/src/git.rs index 0ab599f..9d605b9 100644 --- a/src/git.rs +++ b/src/git.rs @@ -3,7 +3,7 @@ use std::{ str, }; -use crate::heimdall; +use crate::browser; fn check_git() { Command::new("git") @@ -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; } diff --git a/src/main.rs b/src/main.rs index 8629c51..ad65aeb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)] @@ -34,7 +34,7 @@ fn main() { Commands::Options(args) => { let input = args.join(" "); let url = alias::link(input); - heimdall::open(url); + browser::open(url); } } }