nushell/tests/shell
Devyn Cairns 14b0ff3f05
Add --no-newline option to nu (#12410)
# Description
I have `nu` set as my shell in my editor, which allows me to easily pipe
selections of text to things like `str pascal-case` or even more complex
string operation pipelines, which I find super handy. However, the only
annoying thing is that I pretty much always have to add `| print -n` at
the end, because `nu` adds a newline when it prints the resulting value.

This adds a `--no-newline` option to stop that from happening, and then
you don't need to pipe to `print -n` anymore, you can just have your
shell command for your editor contain that flag.

# User-Facing Changes
- Add `--no-newline` command line option

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-09 10:04:00 -04:00
..
environment test: clear parent envs to prevent leakage to tests (#9976) 2023-08-14 12:49:55 +02:00
pipeline to json -r not removing whitespaces fix (#11948) 2024-03-20 22:14:31 +01:00
mod.rs Add --no-newline option to nu (#12410) 2024-04-09 10:04:00 -04:00
repl.rs Fix merging child stack into parent (#12426) 2024-04-06 15:03:22 +00:00