nushell/crates/nu-cli/src
Jason Gedge 6f2ef05195
Resolves https://github.com/nushell/nushell/issues/1658 (#1660)
For example, when running the following:

    crates/nu-cli/src

nushell currently parses this as an external command. Before running the command, we check to see if
it's a directory. If it is, we "auto cd" into that directory, otherwise we go through normal
external processing.

If we put a trailing slash on it though, shells typically interpret that as "user is explicitly
referencing directory". So

    crates/nu-cli/src/

should not be interpreted as "run an external command". We intercept a trailing slash in the head
position of a command in a pipeline as such, and inject a `cd` internal command.
2020-04-27 13:22:01 +12:00
..
commands Resolves https://github.com/nushell/nushell/issues/1658 (#1660) 2020-04-27 13:22:01 +12:00
data Bump rustyline (#1644) 2020-04-24 08:00:49 +12:00
env Rows and values can be checked for emptiness. Allows to set a value if desired. (#1665) 2020-04-26 12:30:52 -05:00
evaluate Add not-in: operator (#1661) 2020-04-26 17:32:17 +12:00
format Add config to disable table index column (#1623) 2020-04-21 18:09:22 +12:00
shell Resolves https://github.com/nushell/nushell/issues/1658 (#1660) 2020-04-27 13:22:01 +12:00
stream Move external closer to internal (#1611) 2020-04-20 15:30:44 +12:00
utils Math operators (#1601) 2020-04-18 13:50:58 +12:00
cli.rs Resolves https://github.com/nushell/nushell/issues/1658 (#1660) 2020-04-27 13:22:01 +12:00
commands.rs Rows and values can be checked for emptiness. Allows to set a value if desired. (#1665) 2020-04-26 12:30:52 -05:00
context.rs Add booleans and fix semicolon shortcircuit (#1620) 2020-04-21 12:30:01 +12:00
data.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
deserializer.rs Semicolon (#1613) 2020-04-20 18:41:51 +12:00
env.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
format.rs some minor improvements and removing dead code (#1563) 2020-04-10 07:48:10 +12:00
futures.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
git.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
lib.rs Add alias support to scripts and -c (#1593) 2020-04-16 05:50:35 +12:00
path.rs Fix cd'ing to symlinked directories (#1651) 2020-04-25 18:09:00 +12:00
prelude.rs make trim apply to strings contained in tables (also at deeper nesting (#1664) 2020-04-27 05:26:02 +12:00
shell.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
utils.rs Rows and values can be checked for emptiness. Allows to set a value if desired. (#1665) 2020-04-26 12:30:52 -05:00