2021-01-12 04:59:53 +00:00
|
|
|
[package]
|
2022-03-22 20:25:38 +00:00
|
|
|
authors = ["The Nushell Project Developers"]
|
2022-04-11 18:17:06 +00:00
|
|
|
description = "Nushell's built-in commands"
|
2022-03-22 20:25:38 +00:00
|
|
|
edition = "2021"
|
|
|
|
license = "MIT"
|
2021-01-12 04:59:53 +00:00
|
|
|
name = "nu-command"
|
2023-02-11 18:59:11 +00:00
|
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-command"
|
2023-02-21 23:21:39 +00:00
|
|
|
version = "0.76.1"
|
2021-12-11 20:08:17 +00:00
|
|
|
|
2021-09-02 01:29:43 +00:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
2023-02-12 22:22:00 +00:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2021-09-02 01:29:43 +00:00
|
|
|
[dependencies]
|
2023-02-11 18:59:11 +00:00
|
|
|
nu-ansi-term = "0.46.0"
|
2023-02-24 15:54:42 +00:00
|
|
|
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.76.1" }
|
2023-02-21 23:21:39 +00:00
|
|
|
nu-color-config = { path = "../nu-color-config", version = "0.76.1" }
|
|
|
|
nu-engine = { path = "../nu-engine", version = "0.76.1" }
|
|
|
|
nu-explore = { path = "../nu-explore", version = "0.76.1" }
|
|
|
|
nu-glob = { path = "../nu-glob", version = "0.76.1" }
|
|
|
|
nu-json = { path = "../nu-json", version = "0.76.1" }
|
|
|
|
nu-parser = { path = "../nu-parser", version = "0.76.1" }
|
|
|
|
nu-path = { path = "../nu-path", version = "0.76.1" }
|
|
|
|
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.76.1" }
|
|
|
|
nu-protocol = { path = "../nu-protocol", version = "0.76.1" }
|
|
|
|
nu-system = { path = "../nu-system", version = "0.76.1" }
|
|
|
|
nu-table = { path = "../nu-table", version = "0.76.1" }
|
|
|
|
nu-term-grid = { path = "../nu-term-grid", version = "0.76.1" }
|
|
|
|
nu-utils = { path = "../nu-utils", version = "0.76.1" }
|
2022-10-10 11:25:57 +00:00
|
|
|
num-format = { version = "0.4.3" }
|
2021-09-10 01:06:44 +00:00
|
|
|
|
|
|
|
# Potential dependencies for extras
|
2023-02-11 18:59:11 +00:00
|
|
|
Inflector = "0.11"
|
2022-05-06 12:58:32 +00:00
|
|
|
alphanumeric-sort = "1.4.4"
|
2022-12-15 14:47:04 +00:00
|
|
|
atty = "0.2.14"
|
2023-01-13 13:16:14 +00:00
|
|
|
base64 = "0.21.0"
|
2022-07-03 18:31:50 +00:00
|
|
|
byteorder = "1.4.3"
|
2023-02-27 06:48:14 +00:00
|
|
|
bytesize = "1.2.0"
|
2022-12-01 19:25:13 +00:00
|
|
|
calamine = "0.19.1"
|
2023-02-11 18:59:11 +00:00
|
|
|
chrono = { version = "0.4.23", features = ["std", "unstable-locales"], default-features = false }
|
2021-10-31 06:54:51 +00:00
|
|
|
chrono-humanize = "0.2.1"
|
2023-01-30 01:38:39 +00:00
|
|
|
chrono-tz = "0.8.1"
|
2022-07-30 09:41:15 +00:00
|
|
|
crossterm = "0.24.0"
|
2023-02-27 06:48:51 +00:00
|
|
|
csv = "1.2.0"
|
2023-01-16 02:04:47 +00:00
|
|
|
dialoguer = { default-features = false, version = "0.10.3" }
|
2022-11-12 05:44:56 +00:00
|
|
|
digest = { default-features = false, version = "0.10.0" }
|
2021-12-04 03:41:02 +00:00
|
|
|
dtparse = "1.2.0"
|
2022-02-03 17:35:06 +00:00
|
|
|
encoding_rs = "0.8.30"
|
2023-01-23 18:57:40 +00:00
|
|
|
fancy-regex = "0.11.0"
|
2022-02-03 17:35:06 +00:00
|
|
|
filesize = "0.2.0"
|
2022-04-07 11:44:05 +00:00
|
|
|
filetime = "0.2.15"
|
2023-02-06 09:59:58 +00:00
|
|
|
fs_extra = "1.3.0"
|
2021-01-12 04:59:53 +00:00
|
|
|
htmlescape = "0.3.1"
|
2023-01-13 13:16:14 +00:00
|
|
|
indexmap = { version = "1.7", features = ["serde-1"] }
|
2023-01-11 01:57:48 +00:00
|
|
|
indicatif = "0.17.2"
|
2022-06-06 11:55:23 +00:00
|
|
|
is-root = "0.1.2"
|
2022-02-03 17:35:06 +00:00
|
|
|
itertools = "0.10.0"
|
|
|
|
log = "0.4.14"
|
2023-01-23 18:57:40 +00:00
|
|
|
lscolors = { version = "0.12.0", features = ["crossterm"], default-features = false }
|
2022-02-03 17:35:06 +00:00
|
|
|
md5 = { package = "md-5", version = "0.10.0" }
|
|
|
|
mime = "0.3.16"
|
2022-12-27 18:46:23 +00:00
|
|
|
mime_guess = "2.0.4"
|
Dependency update: update notify version to v5 (#8114)
# Description
Relative: #8060
While investigating, I found we need to update notify, which is a good
step to remove some duplicate dependencies.
As title, here are some goods and bads after updating:
## Good
keep dependency up to date, and remove duplidate dependency(cfg-if,
winapi) in Cargo.lock.
## Bad
Introduce some breaking changes:
After updating to notify v5, I found that we have to remove `Rename`
events.
But I've testing under notify v4, and it doesn't work good if we running
the following command on MacOS:
```
touch a
mv a b
```
It fires file create event, but no file rename event. So `rename` event
is not really reliable, so I think it's ok for us to remove `Rename`
events.
The reason to remove `--debounce-ms` flag:
It's not provided by defualt file watcher, we can use
[PollWatcher](https://docs.rs/notify/latest/notify/poll/struct.PollWatcher.html),
but it scans filesystem, which is really expensive. So I just remove the
flag.
# User-Facing Changes
1. `--debounce-ms` flag is removed
2. no longer watch `Rename` event.
# Tests + Formatting
Don't forget to add tests that cover your changes.
Make sure you've run and fixed any issues with these commands:
- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass
# After Submitting
If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-02-22 21:35:09 +00:00
|
|
|
notify = "5.1.0"
|
2022-02-03 17:35:06 +00:00
|
|
|
num = { version = "0.4.0", optional = true }
|
2022-08-02 20:52:04 +00:00
|
|
|
num-traits = "0.2.14"
|
2023-01-11 23:00:44 +00:00
|
|
|
once_cell = "1.17"
|
2023-01-03 18:47:37 +00:00
|
|
|
open = "3.2.0"
|
2022-02-03 17:35:06 +00:00
|
|
|
pathdiff = "0.2.1"
|
2022-12-29 14:55:00 +00:00
|
|
|
powierza-coefficient = "1.0.2"
|
2023-01-16 02:06:31 +00:00
|
|
|
quick-xml = "0.27"
|
2022-02-03 17:35:06 +00:00
|
|
|
rand = "0.8"
|
2023-03-06 03:32:16 +00:00
|
|
|
rayon = "1.7.0"
|
2023-01-23 01:44:10 +00:00
|
|
|
regex = "1.7.1"
|
2023-03-05 22:48:13 +00:00
|
|
|
ureq = { version = "2.6.2", default-features = false, features = ["json", "charset", "native-tls", "gzip"] }
|
|
|
|
native-tls = "0.2.11"
|
2023-02-13 02:35:09 +00:00
|
|
|
roxmltree = "0.18.0"
|
2023-03-06 03:36:14 +00:00
|
|
|
rust-embed = "6.6.0"
|
2022-09-23 18:09:31 +00:00
|
|
|
same-file = "1.0.6"
|
2023-01-13 13:16:14 +00:00
|
|
|
serde = { version = "1.0.123", features = ["derive"] }
|
2022-02-03 17:35:06 +00:00
|
|
|
serde_urlencoded = "0.7.0"
|
2022-08-10 19:56:15 +00:00
|
|
|
serde_yaml = "0.9.4"
|
2022-02-03 17:35:06 +00:00
|
|
|
sha2 = "0.10.0"
|
2022-05-16 01:57:25 +00:00
|
|
|
# Disable default features b/c the default features build Git (very slow to compile)
|
2023-02-11 18:59:11 +00:00
|
|
|
percent-encoding = "2.2.0"
|
2023-02-20 21:44:04 +00:00
|
|
|
reedline = { version = "0.16.0", features = ["bashisms", "sqlite"] }
|
2023-02-11 18:59:11 +00:00
|
|
|
rusqlite = { version = "0.28.0", features = ["bundled"], optional = true }
|
|
|
|
sqlparser = { version = "0.30.0", features = ["serde"], optional = true }
|
2023-03-04 22:48:34 +00:00
|
|
|
sysinfo = "0.28.2"
|
2023-02-11 18:59:11 +00:00
|
|
|
tabled = "0.10.0"
|
2022-07-11 16:18:06 +00:00
|
|
|
terminal_size = "0.2.1"
|
2022-06-30 20:55:01 +00:00
|
|
|
thiserror = "1.0.31"
|
2022-07-11 16:18:06 +00:00
|
|
|
titlecase = "2.0.0"
|
2023-02-06 20:15:14 +00:00
|
|
|
toml = "0.7.1"
|
2023-02-11 18:59:11 +00:00
|
|
|
unicode-segmentation = "1.10.0"
|
|
|
|
unicode-width = "0.1.10"
|
2022-02-03 17:35:06 +00:00
|
|
|
url = "2.2.1"
|
2023-02-21 23:32:52 +00:00
|
|
|
uuid = { version = "1.3.0", features = ["v4"] }
|
2023-01-13 13:16:14 +00:00
|
|
|
wax = { version = "0.5.0" }
|
2023-02-11 18:59:11 +00:00
|
|
|
which = { version = "4.4.0", optional = true }
|
`string | fill` counts clusters, not graphemes; and doesn't count ANSI escape codes (#8134)
Enhancement of new `fill` command (#7846) to handle content including
ANSI escape codes for formatting or multi-code-point Unicode grapheme
clusters.
In both of these cases, the content is (many) bytes longer than its
visible length, and `fill` was counting the extra bytes so not adding
enough fill characters.
# Description
This script:
```rust
# the teacher emoji `\u{1F9D1}\u{200D}\u{1F3EB}` is 3 code points, but only 1 print position wide.
echo "This output should be 3 print positions wide, with leading and trailing `+`"
$"\u{1F9D1}\u{200D}\u{1F3EB}" | fill -c "+" -w 3 -a "c"
echo "This output should be 3 print positions wide, with leading and trailing `+`"
$"(ansi green)a(ansi reset)" | fill -c "+" -w 3 -a c
echo ""
```
Was producing this output:
```rust
This output should be 3 print positions wide, with leading and trailing `+`
🧑🏫
This output should be 3 print positions wide, with leading and trailing `+`
a
```
After this PR, it produces this output:
```rust
This output should be 3 print positions wide, with leading and trailing `+`
+🧑🏫+
This output should be 3 print positions wide, with leading and trailing `+`
+a+
```
# User-Facing Changes
Users may have to undo fixes they may have introduced to work around the
former behavior. I have one such in my prompt string that I can now
revert.
# Tests + Formatting
Don't forget to add tests that cover your changes.
-- Done
Make sure you've run and fixed any issues with these commands:
- [x] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [x] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- [x] `cargo test --workspace` to check that all tests pass
# After Submitting
`fill` command not documented in the book, and it still talks about `str
lpad/rpad`. I'll fix.
Note added dependency on a new library `print-positions`, which is an
iterator that yields a complete print position (cluster + Ansi sequence)
per call. Should this be vendored?
2023-02-20 12:32:20 +00:00
|
|
|
print-positions = "0.6.1"
|
2021-05-12 01:01:31 +00:00
|
|
|
|
2022-10-07 18:54:36 +00:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
2023-02-20 02:57:46 +00:00
|
|
|
winreg = "0.11.0"
|
2022-10-07 18:54:36 +00:00
|
|
|
|
2021-01-12 04:59:53 +00:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2023-02-11 18:59:11 +00:00
|
|
|
libc = "0.2"
|
2022-05-11 21:13:45 +00:00
|
|
|
umask = "2.0.0"
|
2021-02-05 20:54:54 +00:00
|
|
|
users = "0.11.0"
|
2021-01-12 04:59:53 +00:00
|
|
|
|
2022-03-26 18:21:19 +00:00
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies.trash]
|
|
|
|
optional = true
|
2023-02-11 18:59:11 +00:00
|
|
|
version = "3.0.1"
|
2022-03-26 18:21:19 +00:00
|
|
|
|
2021-11-23 08:14:40 +00:00
|
|
|
[dependencies.polars]
|
2021-12-18 17:45:09 +00:00
|
|
|
features = [
|
2022-08-14 12:06:31 +00:00
|
|
|
"arg_where",
|
|
|
|
"checked_arithmetic",
|
|
|
|
"concat_str",
|
|
|
|
"cross_join",
|
|
|
|
"csv-file",
|
|
|
|
"cum_agg",
|
|
|
|
"default",
|
2023-02-11 18:59:11 +00:00
|
|
|
"dtype-categorical",
|
2022-08-14 12:06:31 +00:00
|
|
|
"dtype-datetime",
|
|
|
|
"dtype-struct",
|
|
|
|
"dynamic_groupby",
|
2022-09-12 23:30:20 +00:00
|
|
|
"ipc",
|
2022-08-14 12:06:31 +00:00
|
|
|
"is_in",
|
|
|
|
"json",
|
|
|
|
"lazy",
|
|
|
|
"object",
|
|
|
|
"parquet",
|
|
|
|
"random",
|
|
|
|
"rolling_window",
|
|
|
|
"rows",
|
|
|
|
"serde",
|
|
|
|
"serde-lazy",
|
|
|
|
"strings",
|
|
|
|
"strings",
|
|
|
|
"to_dummies",
|
2021-12-18 17:45:09 +00:00
|
|
|
]
|
2023-02-11 18:59:11 +00:00
|
|
|
optional = true
|
2023-02-21 23:32:28 +00:00
|
|
|
version = "0.27.2"
|
2021-11-23 08:14:40 +00:00
|
|
|
|
2022-06-03 16:37:27 +00:00
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
2023-01-23 18:57:40 +00:00
|
|
|
features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_SystemServices"]
|
2023-02-11 18:59:11 +00:00
|
|
|
version = "0.44.0"
|
2022-06-03 16:37:27 +00:00
|
|
|
|
2021-10-10 04:13:15 +00:00
|
|
|
[features]
|
2023-02-11 18:59:11 +00:00
|
|
|
dataframe = ["num", "polars", "sqlparser"]
|
2021-11-02 20:56:00 +00:00
|
|
|
plugin = ["nu-parser/plugin"]
|
2023-01-23 18:57:40 +00:00
|
|
|
sqlite = ["rusqlite"] # TODO: given that rusqlite is included in reedline, should we just always include it?
|
2023-02-11 18:59:11 +00:00
|
|
|
trash-support = ["trash"]
|
|
|
|
which-support = ["which"]
|
2021-01-12 04:59:53 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-02-21 23:21:39 +00:00
|
|
|
nu-test-support = { path = "../nu-test-support", version = "0.76.1" }
|
2023-03-02 19:05:18 +00:00
|
|
|
mockito = "0.32.3"
|
2022-10-29 17:39:27 +00:00
|
|
|
|
2022-02-02 20:59:01 +00:00
|
|
|
dirs-next = "2.0.0"
|
2023-02-11 18:59:11 +00:00
|
|
|
hamcrest2 = "0.3.0"
|
2023-02-13 02:31:53 +00:00
|
|
|
proptest = "1.1.0"
|
2022-02-02 20:59:01 +00:00
|
|
|
quickcheck = "1.0.3"
|
2022-02-04 06:47:18 +00:00
|
|
|
quickcheck_macros = "1.0.0"
|
2023-02-13 02:34:09 +00:00
|
|
|
rstest = { version = "0.16.0", default-features = false }
|