Skip to content

Conversation

@itowlson
Copy link
Collaborator

Using the syntax spin up --variable biscuit=@gingernut.txt.

A motivation here is to allow a JSON document to be passed in a variable. While this can be worked around using the environment provider and bash interpolation, it's nice to allow it in --variable as well (and key-value map files don't cut it because the escaping to format the JSON text as a JSON string value is a huge pain).

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
Copy link
Collaborator

@fibonacci1729 fibonacci1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice little enhancement! Code looks good.

@itowlson itowlson enabled auto-merge October 22, 2025 22:08
@itowlson itowlson merged commit 622f366 into spinframework:main Oct 22, 2025
17 checks passed
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.

2 participants