raz / commit b9fcf3c2

commit
b9fcf3c2f8d615dc7bb42981093c47f47e941880
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
aa182c9a
PLAN: Opt, asked for rloc; Files to the library

patch · log

1 file changed, +10 -0

PLAN.md (history) modified +10 -0

@@ -42,6 +42,16 @@
4242 - [ ] 5. `Str.encode`, `Str.decode`, `Str.toInt`; `Map.remove` and
4343 `Map.next`; `Sort`; `Math`; `Fmt.real`. Each module's `main`
4444 tests it.
45+- [ ] 5a. Asked for rloc, and every program after it: `Opt`, a
46+ command line read through one table, after `~/lib/getopt`.
47+ getopt(3)'s rules with GNU's long options (`-lw`, `-b dev`,
48+ `--bar=dev`, `--`); the usage line and a sentence for every
49+ mistake made from the table, so they can't drift from it;
50+ `-h` and `--help` answered; no global state. `Files` moves from
51+ `tools` to the library, and `Opt` reads its words with
52+ `Files.arg`. The report first, for review; then the module,
53+ its test in its `main`, and `Doc`, `Pretty` and `Mutate` on it.
54+ Kept out: concha's completion from the table, until asked.
4555 - [ ] 6. `examples/Sh.raz`: pipelines, redirection, `cd`, `&`, `wait`,
4656 and Ctrl-C to the job in the foreground, in a few hundred lines.
4757 Its test runs scripts given with `-c`.