Skip to content

Commit b035297

Browse files
committed
Update intro snippets for Nu v0.59
1 parent 9cce399 commit b035297

12 files changed

+69
-67
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
> date now
2-
2020-09-09 09:14:51.684619600 +00:00
2+
2022-03-07 14:14:51.684619600 -08:00
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
> date now | date to-table
2-
───┬──────┬───────┬─────┬──────┬────────┬────────┬──────────
3-
# │ year │ month │ day │ hour │ minute │ second │ timezone
4-
───┼──────┼───────┼─────┼──────┼────────┼────────┼──────────
5-
0 │ 202099 9 1451 │ +00:00
6-
───┴──────┴───────┴─────┴──────┴────────┴────────┴──────────
2+
───┬──────┬───────┬─────┬──────┬────────┬────────┬──────────
3+
# │ year │ month │ day │ hour │ minute │ second │ timezone
4+
───┼──────┼───────┼─────┼──────┼────────┼────────┼──────────
5+
0 │ 20223714 45 3 │ -08:00
6+
───┴──────┴───────┴─────┴──────┴────────┴────────┴──────────

snippets/introduction/help_example.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ There are three ways to represent a path:
1010
* As an inner list of path parts, e.g., '[[ / home viking spam.txt ]]'.
1111
Splitting into parts is done by the `path split` command.
1212

13+
All subcommands accept all three variants as an input. Furthermore, the 'path
1314
join' subcommand can be used to join the structured path or path parts back into
1415
the path literal.
1516

1617
Usage:
17-
> path
18+
> path
1819

1920
Subcommands:
2021
path basename - Get the final component of a path
@@ -29,3 +30,4 @@ Subcommands:
2930

3031
Flags:
3132
-h, --help
33+
Display this help message
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
> ls
2-
────┬────────────────────┬──────┬────────┬────────────
3-
#name │ type │ size modified
4-
────┼────────────────────┼──────┼────────┼────────────
5-
0 │ 404.html │ File │ 429 B │ 3 days ago
6-
1 │ CONTRIBUTING.md │ File │ 955 B │ 8 mins ago
7-
2 │ Gemfile │ File │ 1.1 KB │ 3 days ago
8-
3 │ Gemfile.lock │ File │ 6.9 KB │ 3 days ago
9-
4 │ LICENSE │ File │ 1.1 KB │ 3 days ago
10-
5 │ README.md │ File │ 213 B │ 3 days ago
2+
────┬───────────────────────┬──────┬───────────┬─────────────╮
3+
#name │ type │ size modified
4+
────┼───────────────────────┼──────┼───────────┼─────────────┤
5+
0 │ 404.html │ file 429 B │ 3 days ago
6+
1 │ CONTRIBUTING.md │ file 955 B │ 8 mins ago
7+
2 │ Gemfile │ file 1.1 KiB │ 3 days ago
8+
3 │ Gemfile.lock │ file 6.9 KiB │ 3 days ago
9+
4 │ LICENSE │ file 1.1 KiB │ 3 days ago
10+
5 │ README.md │ file 213 B │ 3 days ago
1111
...
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
> ls | sort-by size | reverse
2-
────┬────────────────────┬──────┬────────┬────────────
3-
#name │ type │ size modified
4-
────┼────────────────────┼──────┼────────┼────────────
5-
0 │ Gemfile.lock │ File │ 6.9 KB │ 3 days ago
6-
1 │ SUMMARY.md │ File │ 3.7 KB │ 3 days ago
7-
2 │ Gemfile │ File │ 1.1 KB │ 3 days ago
8-
3 │ LICENSE │ File │ 1.1 KB │ 3 days ago
9-
4 │ CONTRIBUTING.md │ File │ 955 B │ 9 mins ago
10-
5 │ books.md │ File │ 687 B │ 3 days ago
2+
────┬───────────────────────┬──────┬───────────┬─────────────╮
3+
#name │ type │ size modified
4+
────┼───────────────────────┼──────┼───────────┼─────────────┤
5+
0 │ Gemfile.lock │ file 6.9 KiB │ 3 days ago
6+
1 │ SUMMARY.md │ file 3.7 KiB │ 3 days ago
7+
2 │ Gemfile │ file 1.1 KiB │ 3 days ago
8+
3 │ LICENSE │ file 1.1 KiB │ 3 days ago
9+
4 │ CONTRIBUTING.md │ file 955 B │ 9 mins ago
10+
5 │ books.md │ file 687 B │ 3 days ago
1111
...
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
> ls | where size > 1kb
2-
───┬──────────────┬──────┬────────┬────────────
3-
#name │ type │ size │ modified
4-
───┼──────────────┼──────┼────────┼────────────
5-
0 │ Gemfile │ File │ 1.1 KB │ 3 days ago
6-
1 │ Gemfile.lock │ File │ 6.9 KB │ 3 days ago
7-
2 │ LICENSE │ File │ 1.1 KB │ 3 days ago
8-
3 │ SUMMARY.md │ File │ 3.7 KB │ 3 days ago
9-
───┴──────────────┴──────┴────────┴────────────
2+
───┬───────────────────┬──────┬────────┬────────────
3+
#name │ type │ size │ modified
4+
───┼───────────────────┼──────┼────────┼────────────
5+
0 │ Gemfile │ file │ 1.1 KiB │ 3 days ago
6+
1 │ Gemfile.lock │ file │ 6.9 KiB │ 3 days ago
7+
2 │ LICENSE │ file │ 1.1 KiB │ 3 days ago
8+
3 │ SUMMARY.md │ file │ 3.7 KiB │ 3 days ago
9+
───┴───────────────────┴──────┴────────┴────────────
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
> ps
2-
─────┬───────┬──────────────────┬─────────┬─────────┬──────────┬─────────
3-
# │ pid │ name │ status │ cpu │ mem │ virtual
4-
─────┼───────┼──────────────────┼─────────┼─────────┼──────────┼─────────
5-
0 │ 33155 │ nu_plugin_core_p │ Running │ 3.8496 │ 1.8 MB │ 4.4 GB
6-
1 │ 32841 │ mdworker_shared │ Running │ 0.0000 │ 19.3 MB │ 4.4 GB
7-
2 │ 32829 │ CoreServicesUIAg │ Running │ 0.0000 │ 16.1 MB │ 4.5 GB
8-
3 │ 32828 │ mdworker_shared │ Running │ 0.0000 │ 23.0 MB │ 4.4 GB
2+
╭─────┬──────┬──────────────────────┬─────────┬───────┬───────────┬──────────╮
3+
# │ pid │ name │ status │ cpu │ mem │ virtual │
4+
├─────┼──────┼──────────────────────┼─────────┼───────┼───────────┼──────────┤
5+
│ 0 │ 7570 │ nu │ Running │ 1.96 │ 23.2 MiB │ 32.8 GiB │
6+
│ 1 │ 3533 │ remindd │ Sleep │ 0.00 │ 103.6 MiB │ 32.3 GiB │
7+
│ 2 │ 3495 │ TVCacheExtension │ Sleep │ 0.00 │ 11.9 MiB │ 32.2 GiB │
8+
│ 3 │ 3490 │ MusicCacheExtension │ Sleep │ 0.00 │ 12.9 MiB │ 32.2 GiB │
9+
...
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
> ps | where cpu > 5
2-
───┬──────┬──────────────────┬─────────┬────────┬──────────┬─────────
3-
# │ pid │ name │ status │ cpu │ mem │ virtual
4-
───┼──────┼──────────────────┼─────────┼────────┼──────────┼─────────
5-
0 │ 3971Google Chrome He │ Running │ 5.1263 99.4 MB 5.5 GB
6-
1 │ 360iTerm2 │ Running │ 6.6635218.6 MB 6.0 GB
7-
───┴──────┴──────────────────┴─────────┴────────┴──────────┴─────────
2+
───┬──────┬────────────────┬─────────┬────────┬──────────┬──────────╮
3+
# │ pid │ name │ status │ cpu mem │ virtual
4+
───┼──────┼────────────────┼─────────┼────────┼──────────┼──────────┤
5+
0 │ 1583Terminal │ Running │ 20.69127.8 MiB33.0 GiB │
6+
1 │ 579photoanalysisd │ Running │ 139.50 99.9 MiB32.3 GiB │
7+
───┴──────┴────────────────┴─────────┴────────┴──────────┴──────────╯
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
> sys
2-
─────────┬─────────────────────────────────────────
3-
host │ [row 7 columns]
4-
cpu │ [row cores current ghz max ghz min ghz]
5-
disks │ [table 2 rows]
6-
mem │ [row free swap free swap total total]
7-
net │ [table 11 rows]
8-
battery │ [table 1 rows]
9-
─────────┴─────────────────────────────────────────
2+
───────┬───────────────────
3+
host │ {record 6 fields} │
4+
cpu │ [table 4 rows] │
5+
disks │ [table 3 rows]
6+
mem │ {record 4 fields} │
7+
│ temp │ [table 1 row] │
8+
│ net │ [table 4 rows]
9+
───────┴───────────────────
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
> sys | get host
2-
──────────┬─────────────────────────────────────────────
3-
name │ Linux
4-
release │ 5.3.0-1019-azure
5-
version │ #20-Ubuntu SMP Fri Mar 27 23:54:23 UTC 2020
6-
hostname │ lifeless
7-
arch │ x86_64
8-
uptime │ 8:03:47:32
9-
sessions │ [table 2 rows]
10-
──────────┴─────────────────────────────────────────────
2+
╭────────────────┬────────────────────────╮
3+
│ name │ Debian GNU/Linux │
4+
│ os version │ 11 │
5+
│ kernel version │ 5.10.92-v8+ │
6+
│ hostname │ lifeless │
7+
│ uptime │ 19day 21hr 34min 45sec │
8+
│ sessions │ [table 1 row] │
9+
╰────────────────┴────────────────────────╯

0 commit comments

Comments
 (0)