manta-cli 2.0.0-beta.42

Another CLI for ALPS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Clap definitions for `manta log` (aliased as `logs`).

use clap::{ArgAction, Command, arg};

pub fn subcommand_log() -> Command {
  Command::new("log")
    .alias("logs")
    .about("Stream configuration session logs to stdout (accepts session, node, group, or NID)")
    .arg(arg!(-t --timestamps "Show log timestamps").action(ArgAction::SetTrue))
    // ID preserved as "VALUE" for handler compatibility
    .arg(
      arg!([VALUE] "Session name, node group, xname, or NID.\neg: x1003c1s7b0n0, nid001313, zinal, batcher-64d35a81-d0e1-496d-9eda-0010e502f2a3")
        .value_name("TARGET"),
    )
}