1
0
mirror of https://github.com/nushell/nushell.git synced 2025-05-20 18:00:49 +02:00
nushell/crates/nu-command/tests/commands
Douglas f88ed6ecd5
Fix improperly escaped strings in stor update ()
# Description

Fixes  with the same technique used in  for `stor insert`.
Single quotes (and others) now work properly in strings passed to `stor
update`. Also did some minor refactoring on `stor insert` so it matches
the changes in `stor update`.

# User-Facing Changes

Bug-fix.

# Tests + Formatting

Test added for this scenario.

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
2025-01-26 07:20:39 -06:00
..
assignment Change append operator to concatenation operator () 2024-11-24 10:59:54 -08:00
base Replace the old encode base64 and decode base64 with new-base64 commands () 2024-10-08 11:01:43 +08:00
bytes Implementing ByteStream interuption on infinite stream () 2025-01-11 13:28:08 -08:00
conversions Change behavior of into record on lists to be more useful () 2024-08-22 11:38:43 +02:00
database more closure serialization () 2025-01-07 11:51:22 -06:00
date fix format date based on users locale () 2024-02-20 11:08:49 -06:00
debug Make timeit take only closures as an argument () 2024-12-10 23:08:53 +08:00
hash_ Replace the old encode base64 and decode base64 with new-base64 commands () 2024-10-08 11:01:43 +08:00
math Improve and fix filesize formatting/display () 2025-01-22 22:24:51 -08:00
move_ update uutils crates () 2024-11-17 19:31:36 -06:00
network Fix commands::network::http::*::*_timeout tests on non-english system () 2024-12-19 17:15:27 -06:00
path test(path self): Add tests () 2024-12-17 17:01:23 +01:00
platform ansi name for clear-scrollback code () 2024-10-29 07:01:32 -05:00
query Feature cleanup () 2022-11-22 16:58:11 -08:00
random support filesize arguments in random binary/chars () 2024-10-12 14:49:05 +08:00
skip Add string/binary type color to ByteStream () 2024-05-20 00:35:32 +00:00
str_ Improves commands that support range input () 2024-06-18 07:19:13 -05:00
take Add string/binary type color to ByteStream () 2024-05-20 00:35:32 +00:00
url Change append operator to concatenation operator () 2024-11-24 10:59:54 -08:00
alias.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
all.rs Rewrite run_external.rs () 2024-05-23 02:05:27 +00:00
any.rs Rewrite run_external.rs () 2024-05-23 02:05:27 +00:00
append.rs fix(nu-command/tests): further remove unnecessary pipeline() and cwd() () 2023-04-07 14:09:55 -07:00
break_.rs don't allow break/continue in each and items command () 2024-07-19 00:21:02 -07:00
cal.rs Suppress column index for default cal output () 2024-06-22 07:41:29 -05:00
cd.rs Path migration part 4: various tests () 2024-08-03 10:09:13 +02:00
chunk_by.rs Implement chunk_by operation () 2024-11-29 13:37:27 -08:00
chunks.rs Deprecate group in favor of chunks () 2024-07-16 03:49:00 +00:00
compact.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
complete.rs Make assignment and const consistent with let/mut () 2024-07-30 18:55:22 -05:00
config_env_default.rs Command: Add config env/nu --default to print defaults () 2023-09-25 08:00:59 -05:00
config_nu_default.rs Command: Add config env/nu --default to print defaults () 2023-09-25 08:00:59 -05:00
continue_.rs fix(nu-command/tests): further remove unnecessary pipeline() and cwd() () 2023-04-07 14:09:55 -07:00
debug_info.rs Make debug info lazy () 2023-10-24 12:48:05 -05:00
def.rs make command signature parsing more strict () 2024-11-18 08:01:52 +08:00
default.rs Remove default list-diving behaviour () 2024-07-16 03:54:24 +00:00
detect_columns.rs Improves commands that support range input () 2024-06-18 07:19:13 -05:00
do_.rs deprecate --ignore-shell-errors and --ignore-program-errors in do () 2024-11-27 09:36:30 +08:00
drop.rs Refactor drop columns to fix issues () 2023-11-09 13:51:46 +01:00
du.rs du: add -l/--long flag, remove -a/--all flag () 2024-12-10 11:22:56 -06:00
each.rs Remove group command () 2024-10-11 06:43:12 -05:00
echo.rs Change echo to print when not redirected () 2023-09-13 06:35:01 +12:00
empty.rs fix(nu-command/tests): further remove unnecessary pipeline() and cwd() () 2023-04-07 14:09:55 -07:00
error_make.rs Change the error style during tests to plain () 2024-06-18 21:37:24 -07:00
every.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
exec.rs Isolate tests from user config () 2024-04-10 06:27:46 +08:00
export_def.rs Removes unnecessary cwd and pipeline from various tests () 2023-05-17 18:55:26 -05:00
fill.rs Removes unnecessary cwd and pipeline from various tests () 2023-05-17 18:55:26 -05:00
filter.rs Fix return in filter closure eval () 2024-03-26 17:50:36 +01:00
find.rs fixed issue with find not working with symbols that should be escaped () 2024-09-06 07:22:03 +08:00
first.rs Add string/binary type color to ByteStream () 2024-05-20 00:35:32 +00:00
flatten.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
for_.rs Change echo to print when not redirected () 2023-09-13 06:35:01 +12:00
format.rs Improve and fix filesize formatting/display () 2025-01-22 22:24:51 -08:00
generate.rs Add input support to generate () 2025-01-14 11:44:31 -06:00
get.rs Make get const () 2025-01-04 16:41:03 -05:00
glob.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
griddle.rs make grid throw an error when not enough columns () 2024-04-26 06:33:00 -05:00
group_by.rs Add run-time type checking for command pipeline input () 2025-01-08 23:09:47 +01:00
headers.rs Fix: remove unnecessary r#"..."# () () 2023-07-21 17:32:37 +02:00
help.rs Change the usage misnomer to "description" () 2024-08-22 12:02:08 +02:00
histogram.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
ignore.rs Change the ignore command to use drain() instead of collecting a value () 2024-03-08 02:18:26 -05:00
insert.rs Remove lazy records () 2024-05-03 08:36:10 +08:00
inspect.rs fix inspect and explore panics on empty records () 2024-09-25 07:48:16 -05:00
interleave.rs Isolate tests from user config () 2024-04-10 06:27:46 +08:00
into_datetime.rs add table -> table to into datetime () 2023-07-23 20:14:51 +02:00
into_filesize.rs Improve and fix filesize formatting/display () 2025-01-22 22:24:51 -08:00
into_int.rs add --signed flag for binary into int conversions () 2024-02-27 15:05:26 +00:00
join.rs support table literal syntax in join right-table argument () 2024-10-29 06:37:44 -05:00
last.rs Add string/binary type color to ByteStream () 2024-05-20 00:35:32 +00:00
length.rs support binary input in length () 2024-11-04 03:39:24 +00:00
let_.rs fix error when exporting consts with type signatures in modules () 2024-10-22 11:54:31 +02:00
lines.rs fix panic with lines on an error () 2023-08-09 14:12:58 +02:00
loop_.rs Change echo to print when not redirected () 2023-09-13 06:35:01 +12:00
ls.rs make ls return "Permission denied" for CWD instead of empty results () 2024-11-15 12:09:02 +08:00
match_.rs support raw strings in match patterns () 2024-12-13 06:55:57 -06:00
merge_deep.rs Add merge deep command () 2024-12-18 06:36:04 -06:00
merge.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
mktemp.rs Path migration part 4: various tests () 2024-08-03 10:09:13 +02:00
mod.rs Fix improperly escaped strings in stor update () 2025-01-26 07:20:39 -06:00
mut_.rs raise ParseError if assign to a non-variable or non-mutable-variable () 2024-11-29 23:02:21 +01:00
nu_check.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
open.rs open: Assign content_type metadata for filetypes not handled with a from converter () 2025-01-01 03:05:43 +01:00
par_each.rs Fix: remove unnecessary r#"..."# () () 2023-07-21 17:32:37 +02:00
parse.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
prepend.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
print.rs Add --raw switch to print for binary data () 2024-08-12 17:29:25 +08:00
redirection.rs Overhaul $in expressions () 2024-07-17 16:02:42 -05:00
reduce.rs Add run-time type checking for command pipeline input () 2025-01-08 23:09:47 +01:00
reject.rs Improve CellPath display output () 2024-11-02 10:28:10 -05:00
rename.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
return_.rs Fix return setting last exit code () 2024-10-18 03:05:58 +00:00
reverse.rs Clean up tests containing unnecessary cwd: tokens () 2023-07-17 18:43:51 +02:00
rm.rs Path migration part 4: various tests () 2024-08-03 10:09:13 +02:00
roll.rs Fix: remove unnecessary r#"..."# () () 2023-07-21 17:32:37 +02:00
rotate.rs Fix panic in rotate; Add safe record creation function () 2024-02-03 13:23:16 +02:00
run_external.rs Remove required positional arguments from run-external and exec () 2025-01-16 06:10:28 +08:00
save.rs fix wrong error msg of save command on windows () 2025-01-07 07:36:42 +08:00
select.rs allow select to stream more () 2024-12-03 20:45:31 -06:00
semicolon.rs Slim down tests () 2023-04-28 13:25:44 +02:00
seq_char.rs Seq char update will work on all char () 2024-11-15 21:05:29 +01:00
seq_date.rs seq date: generalize to allow any duration for --increment argument () 2025-01-25 13:24:39 -06:00
seq.rs Slim down tests () 2023-04-28 13:25:44 +02:00
slice.rs Rename/deprecate range to slice () 2025-01-17 06:21:32 -06:00
sort_by.rs to json -r not removing whitespaces fix () 2024-03-20 22:14:31 +01:00
sort.rs Rework sorting and add cell path and closure comparators to sort-by () 2024-10-09 19:18:16 -07:00
source_env.rs Path migration part 2: nu-test-support () 2024-07-12 02:43:10 +00:00
split_column.rs Add --number flag to split column () 2024-09-12 07:16:33 -05:00
split_row.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
start.rs non-HTTP(s) URLs now works with start () 2025-01-23 17:14:31 -08:00
stor.rs Fix improperly escaped strings in stor update () 2025-01-26 07:20:39 -06:00
table.rs Fix () 2025-01-22 06:49:25 -06:00
tee.rs Make tee work more nicely with non-collections () 2024-09-01 19:03:46 +02:00
terminal.rs Add is-terminal to determine if stdin/out/err are a terminal () 2023-11-21 20:48:39 -06:00
to_text.rs Make to text line endings consistent for list (streams) () 2024-11-05 09:33:54 +01:00
transpose.rs Defensive handling of errors when transposing () 2024-10-22 11:30:48 -05:00
try_.rs add rendered and json error messages in try/catch () 2024-10-20 23:14:11 +02:00
ucp.rs Improve and fix filesize formatting/display () 2025-01-22 22:24:51 -08:00
ulimit.rs FreeBSD compatibility patches () 2024-02-17 20:04:59 +01:00
umkdir.rs [umkdir][tests] get umask instead of assuming it () 2024-10-11 14:13:42 +02:00
uname.rs Initial implementation for uutils uname () 2024-03-25 16:51:50 -05:00
uniq_by.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
uniq.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
update.rs Remove lazy records () 2024-05-03 08:36:10 +08:00
upsert.rs Remove lazy records () 2024-05-03 08:36:10 +08:00
use_.rs Change tests which may invoke externals to use non-conflicting names () 2024-12-04 19:26:48 -06:00
utouch.rs Make utouch the new touch () 2025-01-02 06:26:46 -06:00
where_.rs Add new operators has and not-has () 2025-01-17 06:20:00 -06:00
which.rs change the output of which to be more explicit () 2023-07-20 19:10:53 -05:00
while_.rs Change echo to print when not redirected () 2023-09-13 06:35:01 +12:00
window.rs Refactor window () 2024-07-19 04:16:09 +00:00
with_env.rs Improve with-env robustness () 2024-04-16 19:08:58 +08:00
wrap.rs Remove file I/O from tests that don't need it () 2023-11-29 23:21:34 +01:00
zip.rs Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00