Documentation ¶
Overview ¶
The cmd package is used for Cobra integration.
0.1.1 Created by make-go-github-file.yaml on Wed Jan 3 21:43:32 UTC 2024
Index ¶
Constants ¶
View Source
const ( Short string = "Check the environment in which senzing-tool runs" Use string = "check-self" Long string = ` check-self long description. ` )
Variables ¶
View Source
var ContextVariables = append(ContextVariablesForMultiPlatform, ContextVariablesForOsArch...)
View Source
var ContextVariablesForMultiPlatform = []option.ContextVariable{ option.ConfigPath, option.Configuration, option.DatabaseUrl, option.EngineConfigurationJson, option.EngineLogLevel, option.GrpcUrl, option.InputURL, option.LicenseStringBase64, option.LogLevel, option.ObserverUrl, option.ResourcePath, option.SenzingDirectory, option.SupportPath, LicenseDaysLeft, LicenseRecordsPercent, }
View Source
var ContextVariablesForOsArch = []option.ContextVariable{}
View Source
var LicenseDaysLeft = option.ContextVariable{ Arg: "license-days-left", Default: option.OsLookupEnvString("SENZING_TOOLS_LICENSE_DAYS_LEFT", "30"), Envar: "SENZING_TOOLS_LICENSE_DAYS_LEFT", Help: "Number of days left in license before flagging as an error [%s]", Type: optiontype.String, }
View Source
var LicenseRecordsPercent = option.ContextVariable{ Arg: "license-records-percent", Default: option.OsLookupEnvString("SENZING_TOOLS_LICENSE_RECORDS_PERCENT", "90"), Envar: "SENZING_TOOLS_LICENSE_RECORDS_PERCENT", Help: "Percent of records allowed by license [%s]", Type: optiontype.String, }
View Source
var RootCmd = &cobra.Command{ Use: Use, Short: Short, Long: Long, PreRun: PreRun, RunE: RunE, Version: Version(), }
RootCmd represents the command.
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.