Merge pull request 'rename repo info to repo view' (#64) from info-view into main

This commit is contained in:
Cyborus 2024-05-17 01:27:02 +00:00
commit b168dcef7e

View file

@ -243,7 +243,7 @@ pub enum RepoCommand {
#[clap(long, short)] #[clap(long, short)]
push: bool, push: bool,
}, },
Info { View {
name: Option<String>, name: Option<String>,
#[clap(long, short = 'R')] #[clap(long, short = 'R')]
remote: Option<String>, remote: Option<String>,
@ -335,7 +335,7 @@ impl RepoCommand {
} }
} }
} }
RepoCommand::Info { name, remote } => { RepoCommand::View { name, remote } => {
let repo = RepoInfo::get_current(host_name, name.as_deref(), remote.as_deref())?; let repo = RepoInfo::get_current(host_name, name.as_deref(), remote.as_deref())?;
let api = keys.get_api(&repo.host_url())?; let api = keys.get_api(&repo.host_url())?;
let repo = repo let repo = repo