Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "go-oscal", Args: cobra.ExactArgs(0), Short: "Generate Go data types from OSCAL JSON schema", Long: "Generate Go data types from OSCAL JSON schema", SilenceErrors: true, PersistentPreRun: func(cmd *cobra.Command, args []string) { log.SetOutput(os.Stderr) log.SetPrefix("go-oscal: ") if logFile != "" { file, err := logging.OpenLogFile(logFile) if err != nil { log.Fatalf("failed to create log file: %s\n", err) } log.SetOutput(io.MultiWriter(os.Stderr, file)) } cmd.SilenceUsage = true }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.