Rename repo show command to repo info
This commit is contained in:
parent
427128fe5c
commit
5e87d74ede
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
mod add;
|
mod add;
|
||||||
|
mod info;
|
||||||
mod list;
|
mod list;
|
||||||
mod remove;
|
mod remove;
|
||||||
mod show;
|
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
|
|
@ -13,8 +13,8 @@ pub enum Command {
|
||||||
#[command(visible_alias = "l")]
|
#[command(visible_alias = "l")]
|
||||||
List(list::Command),
|
List(list::Command),
|
||||||
|
|
||||||
#[command(visible_alias = "s")]
|
#[command(visible_alias = "i")]
|
||||||
Show(show::Command),
|
Info(info::Command),
|
||||||
|
|
||||||
#[command(visible_alias = "a")]
|
#[command(visible_alias = "a")]
|
||||||
Add(add::Command),
|
Add(add::Command),
|
||||||
|
|
@ -27,7 +27,7 @@ impl Command {
|
||||||
pub fn run(self, env: &Environment) -> anyhow::Result<()> {
|
pub fn run(self, env: &Environment) -> anyhow::Result<()> {
|
||||||
match self {
|
match self {
|
||||||
Self::List(command) => command.run(env),
|
Self::List(command) => command.run(env),
|
||||||
Self::Show(command) => command.run(env),
|
Self::Info(command) => command.run(env),
|
||||||
Self::Add(command) => command.run(env),
|
Self::Add(command) => command.run(env),
|
||||||
Self::Remove(command) => command.run(env),
|
Self::Remove(command) => command.run(env),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue