mirror of https://github.com/astral-sh/uv
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
|
|
@ -70,15 +70,18 @@ enum Commands {
|
||||||
PipInstall(PipInstallArgs),
|
PipInstall(PipInstallArgs),
|
||||||
/// Uninstall packages from the current environment.
|
/// Uninstall packages from the current environment.
|
||||||
PipUninstall(PipUninstallArgs),
|
PipUninstall(PipUninstallArgs),
|
||||||
|
/// Enumerate the installed packages in the current environment.
|
||||||
|
PipFreeze,
|
||||||
|
/// Create a virtual environment.
|
||||||
|
#[clap(alias = "virtualenv")]
|
||||||
|
Venv(VenvArgs),
|
||||||
/// Clear the cache.
|
/// Clear the cache.
|
||||||
Clean(CleanArgs),
|
Clean(CleanArgs),
|
||||||
/// Enumerate the installed packages in the current environment.
|
|
||||||
Freeze,
|
|
||||||
/// Create a virtual environment.
|
|
||||||
Venv(VenvArgs),
|
|
||||||
/// Add a dependency to the workspace.
|
/// Add a dependency to the workspace.
|
||||||
|
#[clap(hide = true)]
|
||||||
Add(AddArgs),
|
Add(AddArgs),
|
||||||
/// Remove a dependency from the workspace.
|
/// Remove a dependency from the workspace.
|
||||||
|
#[clap(hide = true)]
|
||||||
Remove(RemoveArgs),
|
Remove(RemoveArgs),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -535,7 +538,7 @@ async fn inner() -> Result<ExitStatus> {
|
||||||
commands::pip_uninstall(&sources, cache, printer).await
|
commands::pip_uninstall(&sources, cache, printer).await
|
||||||
}
|
}
|
||||||
Commands::Clean(args) => commands::clean(&cache, &args.package, printer),
|
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::Venv(args) => commands::venv(&args.name, args.python.as_deref(), &cache, printer),
|
||||||
Commands::Add(args) => commands::add(&args.name, printer),
|
Commands::Add(args) => commands::add(&args.name, printer),
|
||||||
Commands::Remove(args) => commands::remove(&args.name, printer),
|
Commands::Remove(args) => commands::remove(&args.name, printer),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue