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
..
2021-07-29 10:22:16 -05:00
2021-03-14 10:46:40 +13:00
2021-05-27 12:18:02 -05:00
2021-07-30 09:12:24 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-01-13 08:27:54 +13:00
2021-06-09 18:07:54 +12:00
2021-08-27 20:48:41 +12:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-03-26 21:26:57 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-09-02 18:19:54 -05:00
2021-03-14 10:46:40 +13:00
2021-03-14 15:13:31 +13:00
2021-05-22 10:52:04 -05:00
2021-05-17 15:08:47 +12:00
2021-05-27 12:18:02 -05:00
2021-03-26 21:26:57 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-08-14 23:36:08 -05:00