Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: fvm install help command with usage example #3629

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion crates/fluvio-version-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/main.rs"
# Workspace Dependencies
anyhow = { workspace = true }
async-std = { workspace = true, features = ["attributes"] }
clap = { workspace = true, features = ["std", "color", "derive", "env", "help"] }
clap = { workspace = true, features = ["std", "color", "help", "usage", "derive", "env"] }
colored = { workspace = true }
comfy-table = { workspace = true }
current_platform = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/fluvio-version-manager/src/command/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct InstallOpt {
/// Registry used to fetch Fluvio Versions
#[arg(long, env = "HUB_REGISTRY_URL", default_value = HUB_REMOTE)]
registry: Url,
/// Version to install
/// Version to install: stable, latest, or named-version x.y.z
#[arg(index = 1, default_value_t = Channel::Stable)]
version: Channel,
}
Expand Down
1 change: 1 addition & 0 deletions crates/fluvio-version-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async fn main() -> Result<()> {
name = BINARY_NAME,
about = "Fluvio Version Manager (FVM)",
max_term_width = 100,
arg_required_else_help = true,
)]
pub struct Cli {
#[clap(long, short = 'q', help = "Suppress all output")]
Expand Down
Loading