nushell/crates/nu-command/tests/commands
Lily Mara d90420ac4c
Add subcommand into filesize (#3987)
* Add subcommand `into filesize`

It's currently not possible to convert a number or a string containing a number
into a filesize. The only way to create an instance of filesize type today is
with a literal in nushell syntax. This commit adds the `into filesize`
subcommand so that file sizes can be created from the outputs of programs
producing numbers or strings, like standard unix tools.

There is a limitation with this - it doesn't currently parse values like `10 MB`
or `10 MiB`, it can only look at the number itself. If the desire is there, more
flexible parsing can be added.

* fixup! Add subcommand `into filesize`

* fixup! Add subcommand `into filesize`
2021-09-02 18:19:54 -05:00
..
hash_ Improve md5 and sha256 code (#3841) 2021-07-29 10:22:16 -05:00
keep
math Fixed panic on math with large durations (#3669) 2021-06-23 15:44:14 +12:00
move_
path Move path handling to nu-path (#3653) 2021-06-20 11:07:26 +12:00
pathvar Fix clippy lint and disable broken lint (#3865) 2021-07-30 08:11:47 +12:00
random
skip
str_ remove str from (#3500) 2021-05-27 12:18:02 -05:00
all.rs Add named positionals to all (#3863) 2021-07-30 09:12:24 +12:00
any.rs Fix issue in external subexpression paths (#3642) 2021-06-18 07:59:58 +12:00
append.rs Fix issue in external subexpression paths (#3642) 2021-06-18 07:59:58 +12:00
cal.rs
cd.rs Remove dir-s/ectories/ectories-support features (#3647) 2021-06-19 11:29:29 +12:00
compact.rs
config.rs Relax groups and blocks to output at pipeline level (#3643) 2021-06-18 13:04:51 +12:00
cp.rs
def.rs
default.rs
drop.rs
each.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
echo.rs
empty.rs Fix #3582 (#3583) 2021-06-09 18:07:54 +12:00
enter.rs
every.rs
find.rs introducing the find command (#3971) 2021-08-27 20:48:41 +12:00
first.rs
flatten.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
format.rs
get.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
group_by.rs
headers.rs
help.rs
histogram.rs
insert.rs Rename the use of invocation to subexpression (#3568) 2021-06-07 20:08:35 +12:00
into_filesize.rs Add subcommand into filesize (#3987) 2021-09-02 18:19:54 -05:00
into_int.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
last.rs
length.rs
lines.rs
ls.rs Output error when ls into a file without permission (#3218) 2021-03-31 19:52:39 +13:00
merge.rs
mkdir.rs
mod.rs Add subcommand into filesize (#3987) 2021-09-02 18:19:54 -05:00
nth.rs
open.rs
parse.rs Commands to engine (#3448) 2021-05-22 10:52:04 -05:00
prepend.rs
range.rs Negative indexing for range (#3427) 2021-05-17 15:08:47 +12:00
reduce.rs remove str from (#3500) 2021-05-27 12:18:02 -05:00
rename.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
reverse.rs
rm.rs Resolve issues with rm * globbing (#3516) 2021-05-30 15:36:36 +12:00
roll.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
rotate.rs
save.rs
select.rs
semicolon.rs
sort_by.rs
source.rs Allow custom lib dir path for sourcing nu script libraries. (#3940) 2021-08-26 02:04:04 -05:00
split_by.rs
split_column.rs
split_row.rs
touch.rs
uniq.rs #3385: Add unique option for uniq command (#3754) 2021-07-10 07:27:35 +12:00
update.rs Rename the use of invocation to subexpression (#3568) 2021-06-07 20:08:35 +12:00
where_.rs
which.rs
with_env.rs Allow environment variables to be hidden (#3950) 2021-08-26 08:15:58 -05:00
wrap.rs
zip.rs The zip command. (#3919) 2021-08-14 23:36:08 -05:00