mirror of
https://github.com/nushell/nushell
synced 2025-01-13 13:49:21 +00:00
504eff73f0
requires - https://github.com/nushell/nushell/pull/9455 # ⚙️ Description in this PR i move the commands we've all agreed, in the core team, to move out of the core Nushell to the `extra` feature. > **Warning** > in the first commits here, i've > - moved the implementations to `nu-cmd-extra` > - removed the declaration of all the commands below from `nu-command` > - made sure the commands were not available anymore with `cargo run -- -n` ## the list of commands to move with the current command table downloaded as `commands.csv`, i've run ```bash let commands = ( open commands.csv | where is_plugin == "FALSE" and category != "deprecated" | select name category "approv. %" | rename name category approval | insert treated {|it| ( ($it.approval == 100) or # all the core team agreed on them ($it.name | str starts-with "bits") or # see https://github.com/nushell/nushell/pull/9241 ($it.name | str starts-with "dfr") # see https://github.com/nushell/nushell/pull/9327 )} ) ``` to preprocess them and then ```bash $commands | where {|it| (not $it.treated) and ($it.approval == 0)} ``` to get all untreated commands with no approval, which gives ``` ╭────┬───────────────┬─────────┬─────────────┬──────────╮ │ # │ name │ treated │ category │ approval │ ├────┼───────────────┼─────────┼─────────────┼──────────┤ │ 0 │ fmt │ false │ conversions │ 0 │ │ 1 │ each while │ false │ filters │ 0 │ │ 2 │ roll │ false │ filters │ 0 │ │ 3 │ roll down │ false │ filters │ 0 │ │ 4 │ roll left │ false │ filters │ 0 │ │ 5 │ roll right │ false │ filters │ 0 │ │ 6 │ roll up │ false │ filters │ 0 │ │ 7 │ rotate │ false │ filters │ 0 │ │ 8 │ update cells │ false │ filters │ 0 │ │ 9 │ decode hex │ false │ formats │ 0 │ │ 10 │ encode hex │ false │ formats │ 0 │ │ 11 │ from url │ false │ formats │ 0 │ │ 12 │ to html │ false │ formats │ 0 │ │ 13 │ ansi gradient │ false │ platform │ 0 │ │ 14 │ ansi link │ false │ platform │ 0 │ │ 15 │ format │ false │ strings │ 0 │ ╰────┴───────────────┴─────────┴─────────────┴──────────╯ ``` # 🖌️ User-Facing Changes ``` $nothing ``` # 🧪 Tests + Formatting - ⚫ `toolkit fmt` - ⚫ `toolkit clippy` - ⚫ `toolkit test` - ⚫ `toolkit test stdlib` # 📖 After Submitting ``` $nothing ``` # 🔍 For reviewers ```bash $commands | where {|it| (not $it.treated) and ($it.approval == 0)} | each {|command| try { help $command.name | ignore } catch {|e| $"($command.name): ($e.msg)" } } ``` should give no output in `cargo run --features extra -- -n` and a table with 16 lines in `cargo run -- -n`
130 lines
4 KiB
TOML
130 lines
4 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "Nushell's built-in commands"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-command"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-command"
|
|
version = "0.82.1"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
nu-ansi-term = "0.47.0"
|
|
nu-cmd-base = { path = "../nu-cmd-base", version = "0.82.1" }
|
|
nu-color-config = { path = "../nu-color-config", version = "0.82.1" }
|
|
nu-engine = { path = "../nu-engine", version = "0.82.1" }
|
|
nu-glob = { path = "../nu-glob", version = "0.82.1" }
|
|
nu-json = { path = "../nu-json", version = "0.82.1" }
|
|
nu-parser = { path = "../nu-parser", version = "0.82.1" }
|
|
nu-path = { path = "../nu-path", version = "0.82.1" }
|
|
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.82.1" }
|
|
nu-protocol = { path = "../nu-protocol", version = "0.82.1" }
|
|
nu-system = { path = "../nu-system", version = "0.82.1" }
|
|
nu-table = { path = "../nu-table", version = "0.82.1" }
|
|
nu-term-grid = { path = "../nu-term-grid", version = "0.82.1" }
|
|
nu-utils = { path = "../nu-utils", version = "0.82.1" }
|
|
|
|
Inflector = "0.11"
|
|
alphanumeric-sort = "1.5"
|
|
atty = "0.2"
|
|
base64 = "0.21"
|
|
byteorder = "1.4"
|
|
bytesize = "1.2"
|
|
calamine = "0.21"
|
|
chrono = { version = "0.4", features = ["std", "unstable-locales"], default-features = false }
|
|
chrono-humanize = "0.2"
|
|
chrono-tz = "0.8"
|
|
crossterm = "0.26"
|
|
csv = "1.2"
|
|
dialoguer = { default-features = false, features = ["fuzzy-select"], version = "0.10" }
|
|
digest = { default-features = false, version = "0.10" }
|
|
dtparse = "1.5"
|
|
encoding_rs = "0.8"
|
|
fancy-regex = "0.11"
|
|
filesize = "0.2"
|
|
filetime = "0.2"
|
|
fs_extra = "1.3"
|
|
htmlescape = "0.3"
|
|
indexmap = { version = "1.7", features = ["serde-1"] }
|
|
indicatif = "0.17"
|
|
is-root = "0.1"
|
|
itertools = "0.10"
|
|
log = "0.4"
|
|
lscolors = { version = "0.14", default-features = false, features = ["nu-ansi-term"] }
|
|
md5 = { package = "md-5", version = "0.10" }
|
|
miette = { version = "5.9", features = ["fancy-no-backtrace"] }
|
|
mime = "0.3"
|
|
mime_guess = "2.0"
|
|
native-tls = "0.2"
|
|
notify-debouncer-full = { version = "0.2", default-features = false }
|
|
num = { version = "0.4", optional = true }
|
|
num-format = { version = "0.4" }
|
|
num-traits = "0.2"
|
|
once_cell = "1.18"
|
|
open = "5.0"
|
|
os_pipe = "1.1"
|
|
pathdiff = "0.2"
|
|
percent-encoding = "2.3"
|
|
powierza-coefficient = "1.0"
|
|
print-positions = "0.6"
|
|
quick-xml = "0.29"
|
|
rand = "0.8"
|
|
rayon = "1.7"
|
|
regex = "1.7"
|
|
roxmltree = "0.18"
|
|
rusqlite = { version = "0.29", features = ["bundled"], optional = true }
|
|
same-file = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_urlencoded = "0.7"
|
|
serde_yaml = "0.9"
|
|
sha2 = "0.10"
|
|
sqlparser = { version = "0.34", features = ["serde"], optional = true }
|
|
sysinfo = "0.29"
|
|
tabled = { version = "0.12.2", features = ["color"], default-features = false }
|
|
terminal_size = "0.2"
|
|
titlecase = "2.0"
|
|
toml = "0.7"
|
|
unicode-segmentation = "1.10"
|
|
ureq = { version = "2.7", default-features = false, features = ["charset", "gzip", "json", "native-tls"] }
|
|
url = "2.2"
|
|
uuid = { version = "1.3", features = ["v4"] }
|
|
wax = { version = "0.5" }
|
|
which = { version = "4.4", optional = true }
|
|
bracoxide = "0.1.0"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winreg = "0.50"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
umask = "2.1"
|
|
nix = { version = "0.26", default-features = false, features = ["user"] }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies.trash]
|
|
optional = true
|
|
version = "3.0"
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
|
features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_SystemServices"]
|
|
version = "0.48"
|
|
|
|
[features]
|
|
plugin = ["nu-parser/plugin"]
|
|
sqlite = ["rusqlite"]
|
|
trash-support = ["trash"]
|
|
which-support = ["which"]
|
|
|
|
[dev-dependencies]
|
|
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.82.1" }
|
|
nu-test-support = { path = "../nu-test-support", version = "0.82.1" }
|
|
|
|
dirs-next = "2.0"
|
|
mockito = "1.1"
|
|
quickcheck = "1.0"
|
|
quickcheck_macros = "1.0"
|
|
rstest = { version = "0.17", default-features = false }
|