Skip to content

Commit

Permalink
Add resolve alias
Browse files Browse the repository at this point in the history
  • Loading branch information
AOx0 committed Jul 19, 2022
1 parent 136e49c commit ae1b69a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub struct Local {
#[clap(arg_required_else_help = true)]
pub struct Pull {
/// Automatic dependencies installation
#[clap(long, short)]
#[clap(long, short, visible_alias = "resolve-dependencies")]
pub(crate) resolve: bool,

/// Show more information about the process [alias: vvv]
Expand Down Expand Up @@ -275,7 +275,7 @@ pub struct Install {
pub(crate) yes: bool,

/// Automatic dependencies installation
#[clap(long, short)]
#[clap(long, short, visible_alias = "resolve-dependencies")]
pub(crate) resolve: bool,

/// Show more information about the process [alias: vvv]
Expand Down
7 changes: 4 additions & 3 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub async fn install(
let mut already_large = false;
loop {
let n: isize = loop {
printf!("Select the mod # to download: ");
printf!("Select the mod # to download or `-1` for more: ");
let num: Result<isize, _> = try_read!();
if let Ok(read) = num {
break read;
Expand All @@ -190,8 +190,9 @@ pub async fn install(
let n = n as usize;
if n < mods.len() {
to_install.push(mods[n].clone());
log!(Status: "Added {} by {}...", &mods[n].title, &mods[n].author);
log!(Status: "With ID: {}", &mods[n].id);
if args.is_verbose() {
log!(Status: "Added {} by {} (id: {})...", &mods[n].title, &mods[n].author, &mods[n].id);
}
break;
} else {
log!(Error: "Enter a valid positive index or a negative value (like -1) to show more options")
Expand Down

0 comments on commit ae1b69a

Please sign in to comment.