commands

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CONFIGURATIONS map[string]ConfigVariable = map[string]ConfigVariable{
	"extensions.selected": ConfigVariable{
		// contains filtered or unexported fields
	},
	"profiles.selected": ConfigVariable{
		// contains filtered or unexported fields
	},
}
View Source
var GenerateProtoCmd = &cobra.Command{
	Use:     "generate-proto [ocsf_class_name]...",
	Short:   "Generate a Proto file",
	Example: "ocsf-tool generate-proto file_activity process_activity",
	Long:    "Generate a Proto file for the specified OCSF classes.\nUse the `ocsf-tool schema-class-list` command to see a list of all OCSF classes.",
	Args:    cobra.MinimumNArgs(1),
	Run:     runGenerateProtoCmd,
}

Define the GenerateProtoCmd command

View Source
var SchemaClassListCmd = &cobra.Command{
	Use:   "schema-class-list",
	Short: "List all classes in the OCSF schema",
	Args:  cobra.MinimumNArgs(0),
	Run:   runSchemaClassListCmd,
}

Define SchemaClassList Command

Functions

func GetRootCmd

func GetRootCmd() *cobra.Command

Types

type ConfigVariable added in v0.2.0

type ConfigVariable struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL