Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions linkup-cli/src/commands/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,9 @@ pub struct Args {
// Output status in JSON format
#[arg(long)]
pub json: bool,

#[arg(short, long)]
all: bool,
}

pub fn status(args: &Args) -> anyhow::Result<()> {
// TODO(augustocesar)[2024-10-28]: Remove --all/-a in a future release.
// Do not print the warning in case of JSON so it doesn't break any usage if the result of the command
// is passed on to somewhere else.
if args.all && !args.json {
let warning = "--all/-a is a noop now. All services statuses will always be shown. \
This arg will be removed in a future release.\n";
println!("{}", warning.yellow());
}

if !State::exists() {
println!(
"{}",
Expand Down
Loading