cmd

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

The cmd package is used for Cobra integration.

0.5.2 Created by make-go-github-file.yaml on Tue Jan 30 16:23:47 UTC 2024

Index

Constants

View Source
const (
	Short string = "Initialize a database with the Senzing schema and configuration"
	Use   string = "init-database"
)

Variables

View Source
var ContextVariablesForOsArch = []option.ContextVariable{}
View Source
var (
	Long string = getLong()
)
View Source
var OptionEngineConfigurationFile = option.ContextVariable{
	Arg:     "engine-configuration-file",
	Default: getEngineConfigurationFileDefault(),
	Envar:   envarEngineConfigurationFile,
	Help:    "Path to file of JSON used to configure Senzing engine [%s]",
	Type:    optiontype.String,
}
View Source
var OptionSqlFile = option.ContextVariable{
	Arg:     "sql-file",
	Default: getSqlFileDefault(),
	Envar:   envarSqlFile,
	Help:    "Path to file of SQL used to create Senzing database schema [%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