1a39ffe391
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> ## Summary This PR adds the ability to list available scripts in the environment when `uv run` is invoked without any arguments. It somewhat mimics the behavior of `rye run` command (See https://rye.astral.sh/guide/commands/run). This is an attempt to fix #4024. ## Test Plan I added test cases. The CI pipeline should pass. ### Manuel Tests ```shell ❯ uv run Provide a command or script to invoke with `uv run <command>` or `uv run script.py`. The following scripts are available: normalizer python python3 python3.12 See `uv run --help` for more information. ``` --------- Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> Co-authored-by: Zanie Blue <contact@zanie.dev>
44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "uv-fs"
|
|
version = "0.0.1"
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
|
|
backoff = { workspace = true }
|
|
cachedir = { workspace = true }
|
|
dunce = { workspace = true }
|
|
either = { workspace = true }
|
|
encoding_rs_io = { workspace = true }
|
|
fs-err = { workspace = true }
|
|
fs2 = { workspace = true }
|
|
path-slash = { workspace = true }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true, optional = true }
|
|
tokio = { workspace = true, optional = true}
|
|
tempfile = { workspace = true }
|
|
tracing = { workspace = true }
|
|
urlencoding = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winsafe = { workspace = true }
|
|
|
|
[target.'cfg(any(unix, target_os = "wasi", target_os = "redox"))'.dependencies]
|
|
rustix = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
junction = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
tokio = ["dep:tokio", "fs-err/tokio", "backoff/tokio"]
|