Add uv init --virtual (#5396)

## Summary

Add `uv init --virtual` to create an explicit virtual workspace.

Relates to #5338
This commit is contained in:
Jo 2024-07-25 02:52:33 +08:00 committed by GitHub
parent ac614ee70f
commit 7bcafec778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 196 additions and 54 deletions

View file

@ -1794,7 +1794,11 @@ pub struct InitArgs {
#[arg(long)]
pub name: Option<PackageName>,
/// Do not create a readme file.
/// Create a virtual workspace instead of a project.
#[arg(long)]
pub r#virtual: bool,
/// Do not create a `README.md` file.
#[arg(long)]
pub no_readme: bool,