A popular feature of the agave-cli is the ability to submit most complex data structures from files on disk. This is not really needed for most Abaco operations. However, abaco run is an exception.
When a user wishes to send a structured JSON document as the message payload, they must encode and quote it themselves, a shaky proposition in the UNIX command line. Add in any need to script job submission in subshell and it's nearly impossible. It is also challenging to share example messages with other users.
To address this:
Extend abaco run to accept -F <filename>
Read the file from disk, compressing and validating it as JSON using jq
Send to the target actor's mailbox with a Content-Type: application/json header
A popular feature of the agave-cli is the ability to submit most complex data structures from files on disk. This is not really needed for most Abaco operations. However,
abaco run
is an exception.When a user wishes to send a structured JSON document as the message payload, they must encode and quote it themselves, a shaky proposition in the UNIX command line. Add in any need to script job submission in subshell and it's nearly impossible. It is also challenging to share example messages with other users.
To address this:
abaco run
to accept-F <filename>
jq
Content-Type: application/json
header