mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Clean up the Puffin CLI (#755)
- Rename to `puffin pip-freeze` for consistency. - Add a `virtualenv` alias to `venv`. - Hide the `add` and `remove` commands.
This commit is contained in:
parent
cfffcbb269
commit
aa75d264cd
1 changed files with 8 additions and 5 deletions
|
@ -70,15 +70,18 @@ enum Commands {
|
|||
PipInstall(PipInstallArgs),
|
||||
/// Uninstall packages from the current environment.
|
||||
PipUninstall(PipUninstallArgs),
|
||||
/// Enumerate the installed packages in the current environment.
|
||||
PipFreeze,
|
||||
/// Create a virtual environment.
|
||||
#[clap(alias = "virtualenv")]
|
||||
Venv(VenvArgs),
|
||||
/// Clear the cache.
|
||||
Clean(CleanArgs),
|
||||
/// Enumerate the installed packages in the current environment.
|
||||
Freeze,
|
||||
/// Create a virtual environment.
|
||||
Venv(VenvArgs),
|
||||
/// Add a dependency to the workspace.
|
||||
#[clap(hide = true)]
|
||||
Add(AddArgs),
|
||||
/// Remove a dependency from the workspace.
|
||||
#[clap(hide = true)]
|
||||
Remove(RemoveArgs),
|
||||
}
|
||||
|
||||
|
@ -535,7 +538,7 @@ async fn inner() -> Result<ExitStatus> {
|
|||
commands::pip_uninstall(&sources, cache, printer).await
|
||||
}
|
||||
Commands::Clean(args) => commands::clean(&cache, &args.package, printer),
|
||||
Commands::Freeze => commands::freeze(&cache, printer),
|
||||
Commands::PipFreeze => commands::freeze(&cache, printer),
|
||||
Commands::Venv(args) => commands::venv(&args.name, args.python.as_deref(), &cache, printer),
|
||||
Commands::Add(args) => commands::add(&args.name, printer),
|
||||
Commands::Remove(args) => commands::remove(&args.name, printer),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue