2020-03-04 19:58:20 +01:00
|
|
|
[package]
|
2020-04-06 09:16:14 +02:00
|
|
|
authors = ["The Nu Project Contributors"]
|
2020-03-04 19:58:20 +01:00
|
|
|
description = "CLI for nushell"
|
|
|
|
edition = "2018"
|
2020-03-10 20:08:13 +01:00
|
|
|
license = "MIT"
|
2020-07-05 22:12:44 +02:00
|
|
|
name = "nu-cli"
|
2020-12-18 08:53:49 +01:00
|
|
|
version = "0.24.2"
|
2020-12-01 20:57:49 +01:00
|
|
|
build = "build.rs"
|
2020-03-04 19:58:20 +01:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
doctest = false
|
|
|
|
|
|
|
|
[dependencies]
|
2020-12-18 08:53:49 +01:00
|
|
|
nu-data = {version = "0.24.2", path = "../nu-data"}
|
|
|
|
nu-errors = {version = "0.24.2", path = "../nu-errors"}
|
|
|
|
nu-json = {version = "0.24.2", path = "../nu-json"}
|
|
|
|
nu-parser = {version = "0.24.2", path = "../nu-parser"}
|
|
|
|
nu-plugin = {version = "0.24.2", path = "../nu-plugin"}
|
|
|
|
nu-protocol = {version = "0.24.2", path = "../nu-protocol"}
|
|
|
|
nu-source = {version = "0.24.2", path = "../nu-source"}
|
|
|
|
nu-table = {version = "0.24.2", path = "../nu-table"}
|
|
|
|
nu-test-support = {version = "0.24.2", path = "../nu-test-support"}
|
|
|
|
nu-value-ext = {version = "0.24.2", path = "../nu-value-ext"}
|
2020-03-04 19:58:20 +01:00
|
|
|
|
|
|
|
ansi_term = "0.12.1"
|
2020-05-16 05:18:24 +02:00
|
|
|
async-recursion = "0.3.1"
|
2020-09-09 00:35:45 +02:00
|
|
|
async-trait = "0.1.40"
|
2020-11-30 18:47:35 +01:00
|
|
|
base64 = "0.13.0"
|
2020-09-21 19:28:31 +02:00
|
|
|
bigdecimal = {version = "0.2.0", features = ["serde"]}
|
2020-09-09 00:35:45 +02:00
|
|
|
byte-unit = "4.0.9"
|
|
|
|
bytes = "0.5.6"
|
|
|
|
calamine = "0.16.1"
|
2020-09-17 08:02:30 +02:00
|
|
|
chrono = {version = "0.4.15", features = ["serde"]}
|
2020-12-12 19:18:03 +01:00
|
|
|
chrono-tz = "0.5.3"
|
2020-09-09 00:35:45 +02:00
|
|
|
clap = "2.33.3"
|
2020-12-01 20:57:49 +01:00
|
|
|
clipboard = {version = "0.5.0", optional = true}
|
2020-07-05 22:12:44 +02:00
|
|
|
codespan-reporting = "0.9.5"
|
2020-09-09 00:35:45 +02:00
|
|
|
csv = "1.1.3"
|
2020-09-17 08:02:30 +02:00
|
|
|
ctrlc = {version = "3.1.6", optional = true}
|
2020-03-04 19:58:20 +01:00
|
|
|
derive-new = "0.5.8"
|
2020-09-17 08:02:30 +02:00
|
|
|
directories = {version = "3.0.1", optional = true}
|
|
|
|
dirs = {version = "3.0.1", optional = true}
|
2020-10-06 19:27:06 +02:00
|
|
|
dtparse = "1.2.0"
|
2020-06-27 09:54:31 +02:00
|
|
|
dunce = "1.0.1"
|
2020-04-26 06:26:35 +02:00
|
|
|
eml-parser = "0.1.0"
|
2020-12-01 20:57:49 +01:00
|
|
|
encoding_rs = "0.8.24"
|
2020-04-07 09:51:17 +02:00
|
|
|
filesize = "0.2.0"
|
2020-09-04 01:44:53 +02:00
|
|
|
fs_extra = "1.2.0"
|
2020-09-17 08:02:30 +02:00
|
|
|
futures = {version = "0.3.5", features = ["compat", "io-compat"]}
|
2020-09-09 00:35:45 +02:00
|
|
|
futures_codec = "0.4.1"
|
2020-12-01 20:57:49 +01:00
|
|
|
futures-util = "0.3.5"
|
2020-05-17 00:34:10 +02:00
|
|
|
getset = "0.1.1"
|
2020-09-17 08:02:30 +02:00
|
|
|
git2 = {version = "0.13.11", default_features = false, optional = true}
|
2020-03-04 19:58:20 +01:00
|
|
|
glob = "0.3.0"
|
2020-12-15 20:27:21 +01:00
|
|
|
heim = {version = "0.1.0-rc.1", optional = true}
|
2020-03-15 04:04:44 +01:00
|
|
|
htmlescape = "0.3.1"
|
2020-09-09 00:35:45 +02:00
|
|
|
ical = "0.6.0"
|
2020-09-17 08:02:30 +02:00
|
|
|
ichwh = {version = "0.3.4", optional = true}
|
|
|
|
indexmap = {version = "1.6.0", features = ["serde-1"]}
|
2020-12-01 20:57:49 +01:00
|
|
|
Inflector = "0.11"
|
2020-03-08 20:18:44 +01:00
|
|
|
itertools = "0.9.0"
|
2020-12-01 20:57:49 +01:00
|
|
|
lazy_static = "1.*"
|
2020-09-09 00:35:45 +02:00
|
|
|
log = "0.4.11"
|
|
|
|
meval = "0.2.0"
|
2020-09-21 19:28:31 +02:00
|
|
|
num-bigint = {version = "0.3.0", features = ["serde"]}
|
2020-09-17 08:02:30 +02:00
|
|
|
num-format = {version = "0.4.0", features = ["with-num-bigint"]}
|
2020-09-09 00:35:45 +02:00
|
|
|
num-traits = "0.2.12"
|
2020-06-27 09:54:31 +02:00
|
|
|
parking_lot = "0.11.0"
|
2020-05-17 00:34:10 +02:00
|
|
|
pin-utils = "0.1.0"
|
2020-09-09 00:35:45 +02:00
|
|
|
pretty-hex = "0.2.0"
|
2020-09-17 08:02:30 +02:00
|
|
|
ptree = {version = "0.3.0", optional = true}
|
2020-03-04 19:58:20 +01:00
|
|
|
query_interface = "0.3.5"
|
2020-09-26 08:32:52 +02:00
|
|
|
quick-xml = "0.18.1"
|
2020-09-09 00:35:45 +02:00
|
|
|
rand = "0.7.3"
|
2020-12-01 20:57:49 +01:00
|
|
|
rayon = "1.4.0"
|
2020-09-09 00:35:45 +02:00
|
|
|
regex = "1.3.9"
|
2020-06-27 09:54:31 +02:00
|
|
|
roxmltree = "0.13.0"
|
2020-08-10 19:43:16 +02:00
|
|
|
rust-embed = "5.6.0"
|
2020-12-05 05:12:42 +01:00
|
|
|
rustyline = {version = "6.3.0", optional = true}
|
2020-09-17 08:02:30 +02:00
|
|
|
serde = {version = "1.0.115", features = ["derive"]}
|
2020-06-27 09:54:31 +02:00
|
|
|
serde_bytes = "0.11.5"
|
2020-03-04 19:58:20 +01:00
|
|
|
serde_ini = "0.2.0"
|
2020-09-09 00:35:45 +02:00
|
|
|
serde_json = "1.0.57"
|
|
|
|
serde_urlencoded = "0.7.0"
|
|
|
|
serde_yaml = "0.8.13"
|
Autoenv rewrite, security and scripting (#2083)
* Add args in .nurc file to environment
* Working dummy version
* Add add_nurc to sync_env command
* Parse .nurc file
* Delete env vars after leaving directory
* Removing vals not working, strangely
* Refactoring, add comment
* Debugging
* Debug by logging to file
* Add and remove env var behavior appears correct
However, it does not use existing code that well.
* Move work to cli.rs
* Parse config directories
* I am in a state of distress
* Rename .nurc to .nu
* Some notes for me
* Refactoring
* Removing vars works, but not done in a very nice fashion
* Refactor env_vars_to_delete
* Refactor env_vars_to_add()
* Move directory environment code to separate file
* Refactor from_config
* Restore env values
* Working?
* Working?
* Update comments and change var name
* Formatting
* Remove vars after leaving dir
* Remove notes I made
* Rename config function
* Clippy
* Cleanup and handle errors
* cargo fmt
* Better error messages, remove last (?) unwrap
* FORMAT PLZ
* Rename whitelisted_directories to allowed_directories
* Add comment to clarify how overwritten values are restored.
* Change list of allowed dirs to indexmap
* Rewrite starting
* rewrite everything
* Overwritten env values tracks an indexmap instead of vector
* Refactor restore function
* Untrack removed vars properly
* Performance concerns
* Performance concerns
* Error handling
* Clippy
* Add type aliases for String and OsString
* Deletion almost works
* Working?
* Error handling and refactoring
* nicer errors
* Add TODO file
* Move outside of loop
* Error handling
* Reworking adding of vars
* Reworking adding of vars
* Ready for testing
* Refactoring
* Restore overwritten vals code
* todo.org
* Remove overwritten values tracking, as it is not needed
* Cleanup, stop tracking overwritten values as nu takes care of it
* Init autoenv command
* Initialize autoenv and autoenv trust
* autoenv trust toml
* toml
* Use serde for autoenv
* Optional directory arg
* Add autoenv untrust command
* ... actually add autoenv untrust this time
* OsString and paths
* Revert "OsString and paths"
This reverts commit e6eedf882498c1365ecfc899e5ec11bd83cb055c.
* Fix path
* Fix path
* Autoenv trust and untrust
* Start using autoenv
* Check hashes
* Use trust functionality when setting vars
* Remove unused code
* Clippy
* Nicer errors for autoenv commands
* Non-working errors
* Update error description
* Satisfy fmt
* Errors
* Errors print, but not nicely
* Nicer errors
* fmt
* Delete accidentally added todo.org file
* Rename direnv to autoenv
* Use ShellError instead of Error
* Change tests to pass, danger zone?
* Clippy and errors
* Clippy... again
* Replace match with or_else
* Use sha2 crate for hashing
* parsing and error msg
* Refactoring
* Only apply vars once
* if parent dir
* Delete vars
* Rework exit code
* Adding works
* restore
* Fix possibility of infinite loop
* Refactoring
* Non-working
* Revert "Non-working"
This reverts commit e231b85570bcb3fc838f950e9f5004c6a7c5a2ac.
* Revert "Revert "Non-working""
This reverts commit 804092e46a752266576b044401cc97c317e41f21.
* Autoenv trust works without restart
* Cargo fix
* Script vars
* Serde
* Serde errors
* Entry and exitscripts
* Clippy
* Support windows and handle errors
* Formatting
* Fix infinite loop on windows
* Debugging windows loop
* More windows infinite loop debugging
* Windows loop debugging #3
* windows loop #4
* Don't return err
* Cleanup unused code
* Infinite loop debug
* Loop debugging
* Check if infinite loop is vars_to_add
* env_vars_to_add does not terminate, skip loop as test
* Hypothesis: std::env::current_dir() is messing with something
* Hypothesis: std::env::current_dir() is messing with something
* plz
* make clippy happy
* debugging in env_vars_to_add
* Debbuging env_vars_to_add #2
* clippy
* clippy..
* Fool clippy
* Fix another infinite loop
* Binary search for error location x)
* Binary search #3
* fmt
* Binary search #4
* more searching...
* closing in... maybe
* PLZ
* Cleanup
* Restore commented out functionality
* Handle case when user gives the directory "."
* fmt
* Use fs::canonicalize for paths
* Create optional script section
* fmt
* Add exitscripts even if no entryscripts are defined
* All sections in .nu-env are now optional
* Re-read config file each directory change
* Hot reload after autoenv untrust, don't run exitscripts if untrusted
* Debugging
* Fix issue with recursive adding of vars
* Thank you for finding my issues Mr. Azure
* use std::env
2020-07-05 19:34:00 +02:00
|
|
|
sha2 = "0.9.1"
|
2020-03-08 20:18:44 +01:00
|
|
|
shellexpand = "2.0.0"
|
2020-03-04 19:58:20 +01:00
|
|
|
strip-ansi-escapes = "0.1.0"
|
2020-10-12 15:03:00 +02:00
|
|
|
sxd-document = "0.3.2"
|
2020-10-13 19:19:09 +02:00
|
|
|
sxd-xpath = "0.4.2"
|
2020-03-04 19:58:20 +01:00
|
|
|
tempfile = "3.1.0"
|
2020-09-17 08:02:30 +02:00
|
|
|
term = {version = "0.6.1", optional = true}
|
2020-06-27 09:54:31 +02:00
|
|
|
term_size = "0.3.2"
|
2020-07-05 22:12:44 +02:00
|
|
|
termcolor = "1.1.0"
|
2020-12-12 19:18:03 +01:00
|
|
|
titlecase = "1.0"
|
2020-03-04 19:58:20 +01:00
|
|
|
toml = "0.5.6"
|
2020-12-01 20:57:49 +01:00
|
|
|
trash = {version = "1.2.0", optional = true}
|
2020-09-02 18:54:00 +02:00
|
|
|
unicode-segmentation = "1.6.0"
|
2020-12-15 20:27:21 +01:00
|
|
|
uom = {version = "0.30.0", features = ["f64", "try-from"]}
|
2020-12-01 20:57:49 +01:00
|
|
|
url = "2.1.1"
|
2020-09-17 08:02:30 +02:00
|
|
|
uuid_crate = {package = "uuid", version = "0.8.1", features = ["v4"], optional = true}
|
|
|
|
which = {version = "4.0.2", optional = true}
|
|
|
|
zip = {version = "0.5.7", optional = true}
|
2020-03-04 21:31:12 +01:00
|
|
|
|
2020-03-04 19:58:20 +01:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2020-09-09 20:57:51 +02:00
|
|
|
umask = "1.0.0"
|
2020-09-17 08:02:30 +02:00
|
|
|
users = "0.10.0"
|
2020-03-04 19:58:20 +01:00
|
|
|
|
2020-07-12 05:57:39 +02:00
|
|
|
# TODO this will be possible with new dependency resolver
|
|
|
|
# (currently on nightly behind -Zfeatures=itarget):
|
|
|
|
# https://github.com/rust-lang/cargo/issues/7914
|
|
|
|
#[target.'cfg(not(windows))'.dependencies]
|
|
|
|
#num-format = {version = "0.4", features = ["with-system-locale"]}
|
|
|
|
|
2020-03-04 19:58:20 +01:00
|
|
|
[dependencies.rusqlite]
|
|
|
|
features = ["bundled", "blob"]
|
2020-07-18 03:59:23 +02:00
|
|
|
optional = true
|
2020-12-18 08:53:49 +01:00
|
|
|
version = "0.24.2"
|
2020-03-04 19:58:20 +01:00
|
|
|
|
|
|
|
[build-dependencies]
|
2020-12-01 20:57:49 +01:00
|
|
|
shadow-rs = "0.3.20"
|
2020-08-08 07:39:34 +02:00
|
|
|
|
2020-04-11 21:05:59 +02:00
|
|
|
[dev-dependencies]
|
2020-09-09 00:35:45 +02:00
|
|
|
quickcheck = "0.9.2"
|
|
|
|
quickcheck_macros = "0.9.1"
|
2020-04-11 21:05:59 +02:00
|
|
|
|
2020-03-04 21:31:12 +01:00
|
|
|
[features]
|
|
|
|
clipboard-cli = ["clipboard"]
|
2020-09-21 19:28:31 +02:00
|
|
|
rich-benchmark = ["heim"]
|
2020-09-17 08:02:30 +02:00
|
|
|
rustyline-support = ["rustyline"]
|
2020-07-18 03:59:23 +02:00
|
|
|
stable = []
|
2020-04-12 21:01:44 +02:00
|
|
|
trash-support = ["trash"]
|