nushell/tests
StevenDoesStuffs 7e949595bd
Add is-interactive and is-login to NuVariable and allow running scripts with -i (#8306)
Add two rows in `$nu`, `$nu.is-interactive` and `$nu.is-login`, which
are true when nu is run in interactive and login mode respectively.

The `-i` flag now behaves a bit more like that of bash's, where the any
provided command or file is run without REPL but in "interactive mode".
This should entail sourcing interactive-mode config files, but since we
are planning on overhauling the config system soon, I'm holding off on
that. For now, all `-i` does is set `$nu.is-interactive` to be true.

About testing, I can't seem to find where cli-args get tested, so I
haven't written any new tests for this. Also I don't think there are any
docs that need updating. However if I'm wrong please tell me.
2023-03-08 20:59:33 -06:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ Initial support for parse-time constants (#7436) 2022-12-22 00:21:03 +02:00
fixtures ensure that when nu evaluates files, it allows early returns (#7415) 2023-02-02 00:02:27 +01:00
hooks Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
modules Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
overlays Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
parsing Revert "Primitives now use color closures..." (#7710) 2023-01-08 21:53:52 -08:00
path Run a round of clippy --fix to fix a ton of lints (#7006) 2022-11-04 15:11:17 -05:00
plugins Move some from xxx commands to plugin (#7942) 2023-02-13 12:42:08 +00:00
scope Re-implement aliases (#8123) 2023-02-27 20:44:05 +13:00
shell Add is-interactive and is-login to NuVariable and allow running scripts with -i (#8306) 2023-03-08 20:59:33 -06:00
main.rs Initial support for parse-time constants (#7436) 2022-12-22 00:21:03 +02:00