Skip to content

Commit

Permalink
Explicitly mark aliases in cargo list.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Dec 6, 2021
1 parent cf474a5 commit 910569a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ Run with 'cargo -Z [FLAG] [SUBCOMMAND]'",
}
}
CommandInfo::Alias { target } => {
drop_println!(config, " {:<20} {}", name, target.iter().join(" "));
drop_println!(
config,
" {:<20} alias: {}",
name,
target.iter().join(" ")
);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/cargo_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fn list_custom_aliases_with_descriptions() {
.build();

p.cargo("--list")
.with_stdout_contains(" myaliasstr foo --bar")
.with_stdout_contains(" myaliasvec foo --bar")
.with_stdout_contains(" myaliasstr alias: foo --bar")
.with_stdout_contains(" myaliasvec alias: foo --bar")
.run();
}

Expand Down

0 comments on commit 910569a

Please sign in to comment.