Documentation ¶
Overview ¶
The cmd package is used for Cobra integration.
0.2.1 Created by make-go-github-file.yaml on Fri Mar 31 21:16:54 UTC 2023
Index ¶
Constants ¶
View Source
const ( Short string = "demo-entity-search short description" Use string = "demo-entity-search" Long string = ` demo-entity-search long description. ` )
Variables ¶
View Source
var ContextVariables = append(ContextVariablesForMultiPlatform, ContextVariablesForOsArch...)
View Source
var ContextVariablesForMultiPlatform = []option.ContextVariable{ option.Configuration, option.EngineConfigurationJson, option.LogLevel, SomethingToSay, }
View Source
var ContextVariablesForOsArch = []option.ContextVariable{}
View Source
var RootCmd = &cobra.Command{ Use: Use, Short: Short, Long: Long, PreRun: PreRun, RunE: RunE, Version: Version(), }
RootCmd represents the command.
View Source
var SomethingToSay = option.ContextVariable{ Arg: "something-to-say", Default: option.OsLookupEnvString("SENZING_TOOLS_SOMETHING_TO_SAY", "Main says 'Hi!'"), Envar: "SENZING_TOOLS_SOMETHING_TO_SAY", Help: "Just a phrase to say [%s]", Type: optiontype.String, }
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.