Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenerateCmd = &cobra.Command{ Use: "generate", Short: "generate Golang data types from OSCAL schema", Long: "Generate Golang data types from OSCAL Complete schema.", RunE: func(cmd *cobra.Command, componentDefinitionPaths []string) error { output, err := GenerateCommand(*opts) if err != nil { return err } if opts.OutputFile == "" { log.Println(string(output)) } else { err = files.WriteOutput(output, opts.OutputFile) if err != nil { return fmt.Errorf("failed to write output to file: %s", err) } } return nil }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.