Skip to content

feat: support JSON file inputs for structured options - #13

Open
Muhammad Bin Zohaib (ProMBZ) wants to merge 5 commits into
integromat:mainfrom
ProMBZ:contrib/blueprint-json-file-input
Open

Muhammad Bin Zohaib (ProMBZ) wants to merge 5 commits into
integromat:mainfrom
ProMBZ:contrib/blueprint-json-file-input

Conversation

@ProMBZ

Copy link
Copy Markdown

Fixes #6.

Summary

Large Make scenario blueprints can exceed Windows command-line argument limits, preventing scenarios create and scenarios update from starting when the blueprint is passed inline.

This change lets object and array options read JSON from a local file when the value uses the @ prefix:

make-cli scenarios create --team-id=123 --blueprint=@./scenario-blueprint.json

Inline JSON continues to work unchanged. File paths are resolved from the current working directory, including paths containing spaces when quoted. Read failures and invalid JSON report the file path instead of dumping the entire blueprint.

Regression coverage

  • Reads object and array values from files.
  • Handles paths containing spaces.
  • Reports missing files, malformed JSON, and an empty @ prefix.
  • Documents the new syntax in the README.

Validation

I could not run the repository test, lint, or build commands locally in this session because the environment could not reach GitHub to install dependencies. The added tests are ready for CI.

Copy link
Copy Markdown
Author

cubic.dev (@cubic-dev-ai) review this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--blueprint requires inline JSON — Windows argv limit blocks writes of non-trivial scenarios

1 participant