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

Unhide the experimental top-level commands #5700

Merged
merged 1 commit into from
Aug 1, 2024
Merged
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
7 changes: 0 additions & 7 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,45 +416,38 @@ pub enum PipCommand {
#[derive(Subcommand)]
pub enum ProjectCommand {
/// Initialize a project.
#[clap(hide = true)]
Init(InitArgs),
/// Run a command in the project environment.
#[clap(hide = true)]
#[command(
after_help = "Use `uv help run` for more details.",
after_long_help = ""
)]
Run(RunArgs),
/// Sync the project's dependencies with the environment.
#[clap(hide = true)]
#[command(
after_help = "Use `uv help sync` for more details.",
after_long_help = ""
)]
Sync(SyncArgs),
/// Resolve the project requirements into a lockfile.
#[clap(hide = true)]
#[command(
after_help = "Use `uv help lock` for more details.",
after_long_help = ""
)]
Lock(LockArgs),
/// Add one or more packages to the project requirements.
#[clap(hide = true)]
#[command(
after_help = "Use `uv help add` for more details.",
after_long_help = ""
)]
Add(AddArgs),
/// Remove one or more packages from the project requirements.
#[clap(hide = true)]
#[command(
after_help = "Use `uv help remove` for more details.",
after_long_help = ""
)]
Remove(RemoveArgs),
/// Display the dependency tree for the project.
#[clap(hide = true)]
Tree(TreeArgs),
}

Expand Down
49 changes: 49 additions & 0 deletions crates/uv/tests/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ fn help() {
pip Resolve and install Python packages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to add a better description here now that these are unhidden.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will follow

tool Run and manage executable Python packages
python Manage Python installations
init Initialize a project
run Run a command in the project environment
sync Sync the project's dependencies with the environment
lock Resolve the project requirements into a lockfile
add Add one or more packages to the project requirements
remove Remove one or more packages from the project requirements
tree Display the dependency tree for the project
venv Create a virtual environment
cache Manage the cache
version Display uv's version
Expand Down Expand Up @@ -78,6 +85,13 @@ fn help_flag() {
pip Resolve and install Python packages
tool Run and manage executable Python packages
python Manage Python installations
init Initialize a project
run Run a command in the project environment
sync Sync the project's dependencies with the environment
lock Resolve the project requirements into a lockfile
add Add one or more packages to the project requirements
remove Remove one or more packages from the project requirements
tree Display the dependency tree for the project
venv Create a virtual environment
cache Manage the cache
version Display uv's version
Expand Down Expand Up @@ -136,6 +150,13 @@ fn help_short_flag() {
pip Resolve and install Python packages
tool Run and manage executable Python packages
python Manage Python installations
init Initialize a project
run Run a command in the project environment
sync Sync the project's dependencies with the environment
lock Resolve the project requirements into a lockfile
add Add one or more packages to the project requirements
remove Remove one or more packages from the project requirements
tree Display the dependency tree for the project
venv Create a virtual environment
cache Manage the cache
version Display uv's version
Expand Down Expand Up @@ -547,6 +568,13 @@ fn help_unknown_subcommand() {
pip
tool
python
init
run
sync
lock
add
remove
tree
venv
cache
version
Expand All @@ -562,6 +590,13 @@ fn help_unknown_subcommand() {
pip
tool
python
init
run
sync
lock
add
remove
tree
venv
cache
version
Expand Down Expand Up @@ -604,6 +639,13 @@ fn help_with_global_option() {
pip Resolve and install Python packages
tool Run and manage executable Python packages
python Manage Python installations
init Initialize a project
run Run a command in the project environment
sync Sync the project's dependencies with the environment
lock Resolve the project requirements into a lockfile
add Add one or more packages to the project requirements
remove Remove one or more packages from the project requirements
tree Display the dependency tree for the project
venv Create a virtual environment
cache Manage the cache
version Display uv's version
Expand Down Expand Up @@ -699,6 +741,13 @@ fn help_with_no_pager() {
pip Resolve and install Python packages
tool Run and manage executable Python packages
python Manage Python installations
init Initialize a project
run Run a command in the project environment
sync Sync the project's dependencies with the environment
lock Resolve the project requirements into a lockfile
add Add one or more packages to the project requirements
remove Remove one or more packages from the project requirements
tree Display the dependency tree for the project
venv Create a virtual environment
cache Manage the cache
version Display uv's version
Expand Down
Loading
Loading