oxidecomputer / oxidecomputer/humility

Repl enhancements

Open
#417 2 comments 0 reactions 1 assignee View on GitHub

@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 -j flag 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.