cmd

package
v0.4.6 Latest Latest
Warning

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

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

Documentation

Overview

Package cmd is used for Cobra and Viper integration.

0.4.6 Created by senzing-factory/github-action-make-go-github-file.yaml on Wed Nov 27 19:27:59 UTC 2024

Index

Constants

View Source
const (
	Short string = "HTTP/gRPC server supporting various services"
	Use   string = "playground"
	Long  string = `` /* 133-byte string literal not displayed */

)
View Source
const SenzingToolsDatabaseURL = "sqlite3://na:na@/tmp/sqlite/G2C.db"

Variables

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.

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