oxidecomputer / oxidecomputer/humility
Repl enhancements
Open
@steveklabnik is already working on this.
Since Sep 5, 2023.
:star2: enhancement
- Dominant language
- Rust
- Stars
- 584
- Forks
- 63
- Avg merge
- 3h
- Merged PRs (30d)
- 2
Description
It would be useful if the repl could be used in scripting and/or provided scripting.
- Input from stdin (not just /dev/tty) should be accepted
- Comments and blank lines should be ignored
- All commands should respect the
-jflag for JSON or other parser friendly output format. - Ensure that humility commands' success/failure status can be parsed.
- Doing more than the above quickly gets to the point of embedding an interpreter, evaluate that effort and decide what to do.
This should work but doesn't because reedline forces input to come from /dev/tty and not stdin.
egrep -v '(^#|^$)' <<! | humility ...
# Get task status:
tasks
# Comments and blank lines should be ignored without filtering input.
!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.