We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
params.Format is missing, thwarting us from providing a migration tool agnostic API.
params.Format
// SchemaApplySlice runs the 'schema apply' command for multiple targets. func (c *Client) SchemaApplySlice(ctx context.Context, params *SchemaApplyParams) ([]*SchemaApply, error) { args := []string{"schema", "apply", "--format", "{{ json . }}"} if params.Env != "" { args = append(args, "--env", params.Env) } if params.ConfigURL != "" { args = append(args, "--config", params.ConfigURL) } if params.URL != "" { args = append(args, "--url", params.URL) } if params.To != "" { args = append(args, "--to", params.To) } if params.DryRun { args = append(args, "--dry-run") } else { args = append(args, "--auto-approve") } if params.TxMode != "" { args = append(args, "--tx-mode", params.TxMode) } if params.DevURL != "" { args = append(args, "--dev-url", params.DevURL) } if len(params.Schema) > 0 { args = append(args, "--schema", strings.Join(params.Schema, ",")) } if len(params.Exclude) > 0 { args = append(args, "--exclude", strings.Join(params.Exclude, ",")) } args = append(args, params.Vars.AsArgs()...) return jsonDecodeErr[SchemaApply](newSchemaApplyError)(c.runCommand(ctx, args)) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
params.Format
is missing, thwarting us from providing a migration tool agnostic API.The text was updated successfully, but these errors were encountered: