Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 7 additions & 2 deletions tools/pepsi/src/aliveness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ use tracing::error;
#[derive(Args)]
pub struct Arguments {
/// Output verbose version of the aliveness information
#[arg(long, short = 'v', conflicts_with = "json")]
#[arg(
long,
short = 'v',
conflicts_with = "json",
visible_alias = "gesprächig"
)]
verbose: bool,
/// Output aliveness information as json
#[arg(long, short = 'j', conflicts_with = "verbose")]
json: bool,
/// Timeout in ms for waiting for responses
#[arg(long, short = 't', value_parser = parse_duration, default_value = "200")]
#[arg(long, short = 't', value_parser = parse_duration, default_value = "200", visible_alias = "auszeit")]
timeout: Duration,
/// The Robots to show the aliveness information from, e.g. 20w or 10.1.24.22
robots: Option<Vec<RobotAddress>>,
Expand Down
2 changes: 1 addition & 1 deletion tools/pepsi/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::progress_indicator::ProgressIndicator;
#[derive(Args)]
pub struct Arguments {
/// Run only in check mode and do not make changes in the filesystem
#[arg(long)]
#[arg(long, visible_alias = "prüf")]
check: bool,
}

Expand Down
4 changes: 2 additions & 2 deletions tools/pepsi/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ mod wifi;
#[clap(version, name = "pepsi")]
struct Arguments {
/// Alternative repository root
#[arg(long)]
#[arg(long, visible_alias = "lagerstättenwurzel")]
repository_root: Option<PathBuf>,
#[command(subcommand)]
command: Command,
#[arg(long)]
#[arg(long, visible_alias = "gesprächig")]
verbose: bool,
}

Expand Down
4 changes: 2 additions & 2 deletions tools/pepsi/src/ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use crate::progress_indicator::ProgressIndicator;
#[derive(Args)]
pub struct Arguments {
/// Timeout in seconds after which ping is aborted
#[arg(long, short, default_value = "1")]
#[arg(long, short, default_value = "1", visible_alias = "auszeit")]
pub timeout: f64,
/// Repeat ping indefinitely
#[arg(long, short)]
#[arg(long, short, visible_alias = "beobachte", visible_alias = "armbanduhr")]
pub watch: bool,
/// Interval in seconds between ping attempts when watching
#[arg(long, short, default_value = "1")]
Expand Down
8 changes: 6 additions & 2 deletions tools/pepsi/src/post_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ use crate::{deploy_config::DeployConfig, progress_indicator::ProgressIndicator};
#[derive(Args)]
pub struct Arguments {
/// Do not disconnect from the WiFi network
#[arg(long)]
#[arg(long, visible_alias = "nich-trennen")]
pub no_disconnect: bool,
/// Directory where to store the downloaded logs (will be created if not existing)
#[arg(long)]
#[arg(
long,
visible_alias = "baumstammverzeichnis",
visible_alias = "tagebuchverzeichnis"
)]
pub log_directory: Option<PathBuf>,
/// Current game phase
#[arg(value_enum)]
Expand Down
2 changes: 1 addition & 1 deletion tools/pepsi/src/power_off.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::progress_indicator::ProgressIndicator;
#[derive(Args)]
pub struct Arguments {
/// Power off all Robots
#[arg(long)]
#[arg(long, visible_alias = "alle")]
pub all: bool,
/// The Robots to power off e.g. 20w or 10.1.24.22
#[arg(required = true, conflicts_with = "all", num_args = 1..)]
Expand Down
10 changes: 5 additions & 5 deletions tools/pepsi/src/pre_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ pub struct Arguments {
#[derive(Args)]
pub struct PreGameArguments {
/// Do not build before uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-bauen")]
pub no_build: bool,
/// Do not restart HULK service after uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-neustarten")]
pub no_restart: bool,
/// Do not remove existing remote files during uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-säubern")]
pub no_clean: bool,
/// Skip the OS version check
#[arg(long)]
#[arg(long, visible_alias = "überspringe-bs-prüfung")]
pub skip_os_check: bool,
/// Prepare everything for the upload without performing the actual one
#[arg(long)]
#[arg(long, visible_alias = "vorbereit")]
pub prepare: bool,
/// The Robots to apply the pregame to, queried from the deploy.toml if not specified
pub robots: Option<Vec<RobotAddress>>,
Expand Down
4 changes: 2 additions & 2 deletions tools/pepsi/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ pub enum Arguments {
#[command(visible_alias = "installier")]
Install {
/// SDK version e.g. `1.0.0`. If not provided, version specified by `hulk.toml` is used.
#[arg(long)]
#[arg(long, visible_alias = "abbild", visible_alias = "bild")]
image: Option<String>,
},
/// Builds the SDK image
#[command(visible_alias = "bau")]
Build {
/// SDK version e.g. `3.3.1`. If not provided, version specified by `hulk.toml` is used.
#[arg(long)]
#[arg(long, visible_alias = "abbild", visible_alias = "bild")]
image: Option<String>,
},
#[command(visible_alias = "aufzähl")]
Expand Down
10 changes: 5 additions & 5 deletions tools/pepsi/src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ pub struct Arguments {
#[derive(Args)]
pub struct UploadArguments {
/// Do not build before uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-bauen")]
pub no_build: bool,
/// Do not restart HULK nor HULA service after uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-neustarten")]
pub no_restart: bool,
/// Do not remove existing remote files during uploading
#[arg(long)]
#[arg(long, visible_alias = "nich-säubern")]
pub no_clean: bool,
/// Skip the OS version check
#[arg(long)]
#[arg(long, visible_alias = "überspringe-bs-prüfung")]
pub skip_os_check: bool,
/// Build, don't upload
#[arg(long)]
#[arg(long, visible_alias = "vorbereit")]
pub prepare: bool,
/// The Robots to upload to e.g. 20w or 10.1.24.22
#[arg(required_unless_present("prepare"))]
Expand Down
Loading