OCaml: Add separate logging channels and a dedicated 'command' type
This commit is contained in:
parent
fab7e2425a
commit
ac3dbe4d30
9 changed files with 72 additions and 36 deletions
|
|
@ -1,6 +1,6 @@
|
|||
- [ ] Spec requirements integration test coverage
|
||||
- [ ] Add log function
|
||||
- [ ] Output begins with ` [log] `
|
||||
- [x] Add log function
|
||||
- [x] Output begins with ` [log] `
|
||||
- [ ] Only prints if `DEBUG` is set
|
||||
- [ ] Add interactive pkg tests (INS v0 B2.5)
|
||||
- [ ] Get su command from `$XDG_CONFIG_HOME/tori/tori.conf`
|
||||
|
|
@ -9,11 +9,11 @@
|
|||
- [ ] Valid path or in `PATH`
|
||||
- [ ] Executability
|
||||
- [ ] `true` exits with status 0
|
||||
- [ ] Add logging
|
||||
- [ ] Print each command executed, not just package names
|
||||
- [ ] Case with no packages provided
|
||||
- [ ] Prints a message
|
||||
- [ ] MUST NOT run any system commands
|
||||
- [x] Add logging
|
||||
- [x] Print each command executed, not just package names
|
||||
- [x] Case with no packages provided
|
||||
- [x] Prints a message
|
||||
- [x] MUST NOT run any system commands
|
||||
- [x] Unrecognized command: exit code 1
|
||||
- [x] Command `user`: print the output of `whoami`
|
||||
|
||||
|
|
@ -29,6 +29,8 @@
|
|||
## Notes
|
||||
|
||||
- INS = Iganaq Napkin Spec: <https://brew.bsd.cafe/tori/iganaq#specification>
|
||||
- Spec v0 requirement B2.5 "MUST NOT run any system commands" is only testable
|
||||
if we wrap command execution properly in e.g. a list containing all executed
|
||||
commands and ensure no command is ever executed without being appended to it
|
||||
- INS v0 B2.5 "MUST NOT run any system commands" is only testable if we wrap
|
||||
command execution properly in e.g. a list containing all executed commands
|
||||
and ensure no command is ever executed without being appended to it
|
||||
- INS v0 A3.4 "running 'true' with exit code 0" requires the user to input
|
||||
their password every time. This should be dropped from the spec instead
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue