Skip to content

Commit

Permalink
Move flags comment to somewhere more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
AislingHPE committed Aug 26, 2024
1 parent e29ddb2 commit d896be2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ import (
"github.com/HewlettPackard/terraschema/pkg/jsonschema"
)

// wanted behaviour:
// - disallow-additional-properties: disallow additional properties in schema (default is false)
// - overwrite: overwrite an existing file (default is false for safety reasons)
// - stdout: suppress errors and output schema to stdout (generally not recommended)
// - output: file, default is ./schema.json. Allow creation of directories.
// - input: folder, default is .
// - allow-empty: if no variables are found, print empty schema and exit with 0

var (
disallowAdditionalProperties bool
overwrite bool
Expand Down Expand Up @@ -51,6 +43,14 @@ var rootCmd = &cobra.Command{
PostRun: postRunCommand,
}

// Execute command with the following flags:
// - disallow-additional-properties: disallow additional properties in schema (default is false)
// - overwrite: overwrite an existing file (default is false for safety reasons)
// - stdout: suppress errors and output schema to stdout (generally not recommended)
// - output: file, default is ./schema.json. Allow creation of directories.
// - input: folder, default is .
// - allow-empty: if no variables are found, print empty schema and exit with 0
// - require-all: require all variables to be present in the schema, even if a default value is specified
func Execute() error {
return rootCmd.Execute()
}
Expand Down

0 comments on commit d896be2

Please sign in to comment.