Skip to content

Commit

Permalink
list to ls
Browse files Browse the repository at this point in the history
  • Loading branch information
mckernant1 committed Jul 3, 2020
1 parent 9a74752 commit 807e3dc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
45 changes: 22 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn call_subcommands(matches: ArgMatches, settings_file: SettingsFile) {
clone(matches, settings_file)
} else if matches.is_present("pull") {
pull(matches, settings_file)
} else if matches.is_present("list") {
} else if matches.is_present("ls") {
list(matches, settings_file)
} else if matches.is_present("add") {
add(matches, settings_file)
Expand Down
2 changes: 1 addition & 1 deletion src/subcommands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn pull(matches: ArgMatches, settings_file: SettingsFile) {

pub fn list(matches: ArgMatches, settings_file: SettingsFile) {
let repos = settings_file.list_repos();
let plain_flag = matches.subcommand_matches("list")
let plain_flag = matches.subcommand_matches("ls")
.unwrap().is_present("plain");
for member in repos.members() {
if ! plain_flag {
Expand Down

0 comments on commit 807e3dc

Please sign in to comment.