mirror of
https://github.com/nushell/nushell
synced 2024-11-16 01:37:57 +00:00
ee18f16378
* 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 commite6eedf8824
. * 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 commite231b85570
. * Revert "Revert "Non-working"" This reverts commit804092e46a
. * 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
116 lines
2.8 KiB
TOML
116 lines
2.8 KiB
TOML
[package]
|
|
name = "nu-cli"
|
|
version = "0.16.0"
|
|
authors = ["The Nu Project Contributors"]
|
|
description = "CLI for nushell"
|
|
edition = "2018"
|
|
license = "MIT"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
nu-source = { version = "0.16.0", path = "../nu-source" }
|
|
nu-plugin = { version = "0.16.0", path = "../nu-plugin" }
|
|
nu-protocol = { version = "0.16.0", path = "../nu-protocol" }
|
|
nu-errors = { version = "0.16.0", path = "../nu-errors" }
|
|
nu-parser = { version = "0.16.0", path = "../nu-parser" }
|
|
nu-value-ext = { version = "0.16.0", path = "../nu-value-ext" }
|
|
nu-test-support = { version = "0.16.0", path = "../nu-test-support" }
|
|
nu-table = {version = "0.16.0", path = "../nu-table"}
|
|
|
|
ansi_term = "0.12.1"
|
|
app_dirs = "1.2.1"
|
|
async-recursion = "0.3.1"
|
|
async-trait = "0.1.36"
|
|
directories = "2.0.2"
|
|
base64 = "0.12.3"
|
|
bigdecimal = { version = "0.1.2", features = ["serde"] }
|
|
bson = { version = "0.14.1", features = ["decimal128"] }
|
|
byte-unit = "3.1.3"
|
|
bytes = "0.5.5"
|
|
calamine = "0.16"
|
|
cfg-if = "0.1"
|
|
chrono = { version = "0.4.11", features = ["serde"] }
|
|
clap = "2.33.1"
|
|
csv = "1.1"
|
|
ctrlc = "3.1.4"
|
|
derive-new = "0.5.8"
|
|
dirs = "2.0.2"
|
|
dunce = "1.0.1"
|
|
eml-parser = "0.1.0"
|
|
filesize = "0.2.0"
|
|
futures = { version = "0.3", features = ["compat", "io-compat"] }
|
|
futures-util = "0.3.5"
|
|
futures_codec = "0.4"
|
|
getset = "0.1.1"
|
|
git2 = { version = "0.13.6", default_features = false }
|
|
glob = "0.3.0"
|
|
hex = "0.4"
|
|
htmlescape = "0.3.1"
|
|
ical = "0.6.*"
|
|
ichwh = "0.3.4"
|
|
indexmap = { version = "1.4.0", features = ["serde-1"] }
|
|
itertools = "0.9.0"
|
|
codespan-reporting = "0.9.5"
|
|
log = "0.4.8"
|
|
meval = "0.2"
|
|
natural = "0.5.0"
|
|
num-bigint = { version = "0.2.6", features = ["serde"] }
|
|
num-traits = "0.2.11"
|
|
parking_lot = "0.11.0"
|
|
pin-utils = "0.1.0"
|
|
pretty-hex = "0.1.1"
|
|
pretty_env_logger = "0.4.0"
|
|
ptree = {version = "0.2" }
|
|
query_interface = "0.3.5"
|
|
rand = "0.7"
|
|
regex = "1"
|
|
roxmltree = "0.13.0"
|
|
rustyline = "6.2.0"
|
|
serde = { version = "1.0.114", features = ["derive"] }
|
|
serde-hjson = "0.9.1"
|
|
serde_bytes = "0.11.5"
|
|
serde_ini = "0.2.0"
|
|
serde_json = "1.0.55"
|
|
serde_urlencoded = "0.6.1"
|
|
serde_yaml = "0.8"
|
|
sha2 = "0.9.1"
|
|
shellexpand = "2.0.0"
|
|
strip-ansi-escapes = "0.1.0"
|
|
tempfile = "3.1.0"
|
|
term = "0.5.2"
|
|
termcolor = "1.1.0"
|
|
term_size = "0.3.2"
|
|
toml = "0.5.6"
|
|
typetag = "0.1.5"
|
|
umask = "1.0.0"
|
|
unicode-xid = "0.2.1"
|
|
uuid_crate = { package = "uuid", version = "0.8.1", features = ["v4"] }
|
|
which = "4.0.1"
|
|
|
|
trash = { version = "1.0.1", optional = true }
|
|
clipboard = { version = "0.5", optional = true }
|
|
starship = "0.43.0"
|
|
rayon = "1.3.1"
|
|
encoding_rs = "0.8.23"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
users = "0.10.0"
|
|
|
|
[dependencies.rusqlite]
|
|
version = "0.23.1"
|
|
features = ["bundled", "blob"]
|
|
|
|
[build-dependencies]
|
|
nu-build = { version = "0.16.0", path = "../nu-build" }
|
|
|
|
[dev-dependencies]
|
|
quickcheck = "0.9"
|
|
quickcheck_macros = "0.9"
|
|
|
|
[features]
|
|
stable = []
|
|
# starship-prompt = ["starship"]
|
|
clipboard-cli = ["clipboard"]
|
|
trash-support = ["trash"]
|