apalache icon indicating copy to clipboard operation
apalache copied to clipboard

Support reading input from stdin or based on value in an Apalache `.cfg` source

Open shonfeder opened this issue 3 years ago • 0 comments

With #2127 and #2074 in place, it will now be quite easy to adjust the CLI to support more flexible input methods:

  • [ ] 1. Read specification input from stdin.
  • [ ] 2. Read specification input based on a file or string give in a configuration source.

For 1, the CLI invocation might look like:

json-data-cmd | apalache-mc check --stdin=json

For 2, the CLI invocation can simply be

apalache-mc check --config=myconfig.cfg

In both cases, we'd do error handling prior to running the pass executor to report a user error in case no input source was provided.

shonfeder avatar Aug 31 '22 19:08 shonfeder