on dfddc7b help sign in
64 lines 1.0 kB history raw
1---
2next: true
3sort: 2
4title: Shell
5---
7# `:dojo` (Shell)
9The dojo is a typed functional shell.
11(Goals of a REPL+IFTTT, hood)
13## Quickstart
15Evaluate a hoon expression:
17 ~fintud-macrep:dojo> (add 2 2)
18 ~fintud-macrep:dojo> %+ add 2 2
20Tall form Hoon will be prompted for:
22 ~fintud-macrep:dojo> %+ add
23 ~fintud-macrep:dojo< 2
24 ~fintud-macrep:dojo< 2
26Use `=var` to save a shell variable:
28 ~fintud-macrep:dojo> =foo (add 2 2)
30Generators (files in `/gen`) are run with `+`:
32 ~fintud-macrep:dojo> +hello 'world'
34Save output to a file in `%clay` with `*`:
36 ~fintud-macrep:dojo> *foo/bar/hoon 'hello world'
38A system command to `:hood` using `|`:
40 ~fintud-macrep:dojo> |reload %eyre
42# dir
44## Manual
46# special vars
48# command prefixes
50### `:` send to app
52Send a poke message to `:square` as an `atom` mark:
54 ~fintud-macrep:dojo> :~fintud-macrep/square &atom (add 2 2)
56### `.` download to Unix
58Download a noun to Unix with `.`:
60 ~fintud-macrep:dojo> .foo/bar/baz (add 2 2)
62# generators
64# hood