From f1ae3ed5a07fe22ea35eb694d8e998612a11d16f Mon Sep 17 00:00:00 2001 From: Chris Pryer Date: Tue, 21 Nov 2023 17:17:02 -0500 Subject: [PATCH] Small chore --- README.md | 4 ++-- crates/huak-cli/src/cli.rs | 12 ++++++------ .../tests/snapshots/r#mod__tests__python_help.snap | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ca19070a..35f84bab 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,10 @@ The goal is to create an opinionated tool to support a reliably inviting onboard ## Installation ``` -❯ pip install huak +pip install huak ``` -To install Huak from source use `Cargo`: +To install Huak from source using Cargo: ``` cargo install --git https://github.com/cnpryer/huak.git huak diff --git a/crates/huak-cli/src/cli.rs b/crates/huak-cli/src/cli.rs index c96da9ac..077632a5 100644 --- a/crates/huak-cli/src/cli.rs +++ b/crates/huak-cli/src/cli.rs @@ -178,6 +178,12 @@ enum Commands { #[derive(Subcommand)] enum Python { + /// Install a Python interpreter. + Install { + /// The version of Python to install. + #[arg(required = true)] + version: RequestedVersion, + }, /// List available Python interpreters. List, /// Use an available Python interpreter. @@ -186,12 +192,6 @@ enum Python { #[arg(required = true)] version: RequestedVersion, }, - /// Install a Python interpreter. - Install { - /// The version of Python to install. - #[arg(required = true)] - version: RequestedVersion, - }, } #[derive(Subcommand)] diff --git a/crates/huak-cli/tests/snapshots/r#mod__tests__python_help.snap b/crates/huak-cli/tests/snapshots/r#mod__tests__python_help.snap index f867c744..27359a81 100644 --- a/crates/huak-cli/tests/snapshots/r#mod__tests__python_help.snap +++ b/crates/huak-cli/tests/snapshots/r#mod__tests__python_help.snap @@ -14,9 +14,9 @@ Manage Python installations Usage: huak python [OPTIONS] Commands: + install Install a Python interpreter list List available Python interpreters use Use an available Python interpreter - install Install a Python interpreter help Print this message or the help of the given subcommand(s) Options: