Size command: rename max length to bytes (#2473)

Since max length is just getting the byte length, rename to bytes
in order to be more clear.
This commit is contained in:
Chris Gillespie
2020-08-31 19:51:35 -07:00
committed by GitHub
parent b5d591bb09
commit f54cf8a096
4 changed files with 8 additions and 8 deletions

View File

@ -40,7 +40,7 @@
```shell
> open --raw Cargo.toml | size | debug
(lines=139 words=560 chars=4607 max length=4607)
(lines=139 words=560 chars=4607 bytes=4607)
```
```shell

View File

@ -134,7 +134,7 @@ To get the average of the file sizes in a directory, simply pipe the size column
```shell
> pwd | split row / | size
───┬───────┬───────┬───────┬────────────
# │ lines │ words │ chars │ max length
# │ lines │ words │ chars │ bytes
───┼───────┼───────┼───────┼────────────
00155
1011111
@ -151,7 +151,7 @@ To get the average of the file sizes in a directory, simply pipe the size column
lines │ 0
words │ 2
chars │ 12
max length12
bytes12
────────────┴────
```
@ -161,7 +161,7 @@ To get the average of the file sizes in a directory, simply pipe the size column
lines │ 0.0000
words │ 1.1666
chars │ 8.3333
max length │ 8.3333
bytes │ 8.3333
────────────┴────────
```

View File

@ -7,7 +7,7 @@ This commands gives word count statistics on any text.
```shell
> open lalala.txt | size
━━━━━━━┯━━━━━━━┯━━━━━━━┯━━━━━━━━━━━━
lines │ words │ chars │ max length
lines │ words │ chars │ bytes
───────┼───────┼───────┼────────────
4107272
━━━━━━━┷━━━━━━━┷━━━━━━━┷━━━━━━━━━━━━
@ -16,7 +16,7 @@ This commands gives word count statistics on any text.
```shell
> open the_mysterious_affair_at_styles.txt | size
━━━━━━━┯━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━━
lines │ words │ chars │ max length
lines │ words │ chars │ bytes
───────┼───────┼────────┼────────────
893562352349459361771
━━━━━━━┷━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━━