diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-05-17 03:13:53 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-05-17 03:13:53 +0200 |
commit | 20669bf4d71c4667500382e6c05682b83195b15c (patch) | |
tree | 836c7f9c6ebad5fb4dc6b416cd5c7eab9a74b72d | |
parent | Merge pull request 'remove outdated comment' (#63) from remove-comment into main (diff) | |
download | forgejo-cli-20669bf4d71c4667500382e6c05682b83195b15c.tar.xz forgejo-cli-20669bf4d71c4667500382e6c05682b83195b15c.zip |
rename `repo info` to `repo view`
-rw-r--r-- | src/repo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repo.rs b/src/repo.rs index a9aaeac..859d05f 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -243,7 +243,7 @@ pub enum RepoCommand { #[clap(long, short)] push: bool, }, - Info { + View { name: Option<String>, #[clap(long, short = 'R')] 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 api = keys.get_api(&repo.host_url())?; let repo = repo |