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

Jsonnet support. #11

Merged
merged 3 commits into from
May 22, 2024
Merged

Jsonnet support. #11

merged 3 commits into from
May 22, 2024

Conversation

fujiwara
Copy link
Owner

The third argument is JSON or Jsonnet input for the method. If the method does not require input, you can omit the third argument (implicitly {} passed).

The third argument can be a filename that contains JSON or Jsonnet input.

$ aws-sdk-client-go ecs DescribeClusters my.jsonnet

--ext-str and --ext-code options

--ext-str and --ext-code options allow you to pass external variables to Jsonnet.

This is useful when you want to use variables in Jsonnet.

$ aws-sdk-client-go ecs DescribeClusters my.jsonnet --ext-str Cluster=default
// my.jsonnet
{
  Cluster: std.extVar("Cluster"),
}

@fujiwara fujiwara merged commit 89286be into main May 22, 2024
4 checks passed
@fujiwara fujiwara deleted the jsonnet branch May 22, 2024 03:08
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.

None yet

1 participant