cmd

package
v0.1.1 Latest Latest
Warning

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

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

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 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,
}

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.

func PreRun

func PreRun(cobraCommand *cobra.Command, args []string)

Used in construction of cobra.Command

func RunE

func RunE(_ *cobra.Command, _ []string) error

Used in construction of cobra.Command

func Version

func Version() string

Used in construction of cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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