Skip to content

Commit

Permalink
Merge pull request #163 from Screenly/fix/help_texts
Browse files Browse the repository at this point in the history
Adds: missing help texts
  • Loading branch information
korvyashka authored May 10, 2024
2 parents 488ecbd + 4e352e9 commit ec61476
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ pub enum Commands {
/// Asset related commands.
#[command(subcommand)]
Asset(AssetCommands),
/// Playlist related commands.
#[command(subcommand)]
Playlist(PlaylistCommands),
/// Edge App related commands.
#[command(subcommand)]
EdgeApp(EdgeAppCommands),
}
Expand Down Expand Up @@ -368,6 +370,7 @@ pub enum EdgeAppCommands {

#[derive(Subcommand, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum EdgeAppVersionCommands {
/// Lists Edge App versions.
List {
/// Edge app id. If not specified CLI will use the id from the manifest.
#[arg(short, long)]
Expand All @@ -381,6 +384,7 @@ pub enum EdgeAppVersionCommands {
#[arg(short, long, action = clap::ArgAction::SetTrue)]
json: Option<bool>,
},
/// Promotes Edge App revision to channel.
Promote {
/// Edge app revision to promote.
#[arg(short, long)]
Expand All @@ -389,10 +393,11 @@ pub enum EdgeAppVersionCommands {
#[arg(short, long, default_value = "stable")]
channel: String,

/// Edge App Installation id. If app_id is specified, installation_id must be also specified. If both are not specified, CLI will use the installation_id from the manifest
/// Edge App Installation id. If not specified, CLI will use the installation_id from the manifest.
#[arg(short, long)]
installation_id: Option<String>,

/// Use the latest revision of the Edge App.
#[arg(long, action = clap::ArgAction::SetTrue, conflicts_with = "revision", default_value="false")]
latest: bool,

Expand All @@ -404,26 +409,27 @@ pub enum EdgeAppVersionCommands {

#[derive(Subcommand, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum EdgeAppSettingsCommands {
/// Lists Edge App settings.
List {
/// Path to the directory with the manifest. If not specified CLI will use the current working directory.
#[arg(short, long)]
path: Option<String>,

/// Edge App Installation id. If app_id is specified, installation_id must be also specified. If both are not specified, CLI will use the installation_id from the manifest
/// Edge App Installation id. If not specified, CLI will use the installation_id from the manifest.
#[arg(short, long)]
installation_id: Option<String>,

/// Enables JSON output.
#[arg(short, long, action = clap::ArgAction::SetTrue)]
json: Option<bool>,
},

/// Sets Edge App setting.
Set {
/// Key value pair of the setting to be set in the form of `key=value`.
#[arg(value_parser = parse_key_val)]
setting_pair: (String, String),

/// Edge App Installation id. If app_id is specified, installation_id must be also specified. If both are not specified, CLI will use the installation_id from the manifest
/// Edge App Installation id. If not specified, CLI will use the installation_id from the manifest.
#[arg(short, long)]
installation_id: Option<String>,

Expand All @@ -435,25 +441,27 @@ pub enum EdgeAppSettingsCommands {

#[derive(Subcommand, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum EdgeAppSecretsCommands {
/// Lists Edge App secrets.
List {
/// Path to the directory with the manifest. If not specified CLI will use the current working directory.
#[arg(short, long)]
path: Option<String>,

/// Edge App Installation id. If app_id is specified, installation_id must be also specified. If both are not specified, CLI will use the installation_id from the manifest
/// Edge App Installation id. If not specified, CLI will use the installation_id from the manifest.
#[arg(short, long)]
installation_id: Option<String>,

/// Enables JSON output.
#[arg(short, long, action = clap::ArgAction::SetTrue)]
json: Option<bool>,
},
/// Sets Edge App secret.
Set {
/// Key value pair of the secret to be set in the form of `key=value`.
#[arg(value_parser = parse_key_val)]
secret_pair: (String, String),

/// Edge App Installation id. If app_id is specified, installation_id must be also specified. If both are not specified, CLI will use the installation_id from the manifest
/// Edge App Installation id. If not specified, CLI will use the installation_id from the manifest.
#[arg(short, long)]
installation_id: Option<String>,

Expand Down

0 comments on commit ec61476

Please sign in to comment.