Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to the make cli option that doesn't write files, but instead outputs the text to stdout. #1103

Open
DamianReeves opened this issue Sep 14, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed task Task level project item

Comments

@DamianReeves
Copy link
Member

Is your feature request related to a problem? Please describe.
Since it is quite an effort to create an Elm compiler for morphir-scala and morphir-dotnet, those ecosystems rely on morphir-elm for the Elm to Morphir IR toolchain.

Both are targeting to integrate their tooling by enlisting the morphir-elm tooling and invoking morphir-elm as a subprocess.

It would ease integration if there was a mode where instead of creating files morphir-elm make just wrote the file text to stdout so that morphir-scala and morphir-dotnet can wrap their own processing actions around the various JSON files produces (primarily morphir-ir.json).

Describe the solution you'd like
Provide a --no-files or some equivalent flag which would put the CLI in a mode where the following occurs:

  • All errors and warnings would print to stderr not stdout (I feel like this should be the default of the CLI anyways)
  • All JSON output that would be written to files are emitted to stdout.
    • A simple YAML Header should be added prior to the JSON to allow metadata like target file names to be communicated over stdout

Describe alternatives you've considered
An alternative would be to communicate this info using JSON RPC or GRPC but that is a lot of work and this solution should serve most needs.

Additional context
N/A

@DamianReeves DamianReeves added help wanted Extra attention is needed good first issue Good for newcomers task Task level project item labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed task Task level project item
Projects
None yet
Development

No branches or pull requests

1 participant