Documentation
¶
Index ¶
- func CommandValidate(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
- func CommandValidateSchema(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
- func CommandValidateSolution(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandValidate ¶
func CommandValidate(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
CommandValidate creates the 'validate' command that validates solution artifacts and exits non-zero when validation fails.
func CommandValidateSchema ¶ added in v0.35.0
func CommandValidateSchema(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
CommandValidateSchema creates the 'validate schema' subcommand. It validates arbitrary data (JSON or YAML) against a JSON Schema (JSON or YAML). It does NOT run lint -- it operates on arbitrary data, not on a scafctl solution.
func CommandValidateSolution ¶ added in v0.35.0
func CommandValidateSolution(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command
CommandValidateSolution creates the 'validate solution' subcommand -- the primary validation gate. It loads a solution and runs lint: lint errors (and schema violations, which lint reports) fail; lint warnings are surfaced and, with --strict, are also fatal. Schema conformance is covered by lint's built-in schema check, so it is not double-reported here.
Types ¶
This section is empty.