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 ContextVariables = append(ContextVariablesForMultiPlatform, ContextVariablesForOsArch...)
View Source
var ContextVariablesForMultiPlatform = []option.ContextVariable{ option.Configuration, option.DatabaseUrl, option.Datasources, option.EngineConfigurationJson, option.EngineLogLevel, option.EngineModuleName, option.LicenseStringBase64, option.LogLevel, option.ObserverOrigin, option.ObserverUrl, }
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, }
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.