Documentation
¶
Overview ¶
Package cmd is used for Cobra and Viper integration.
0.4.13 Created by senzing-factory/github-action-make-go-github-file.yaml on Wed Jun 4 16:02:14 UTC 2025
Index ¶
Constants ¶
View Source
const ( Long string = `` /* 133-byte string literal not displayed */ ReadHeaderTimeoutInSeconds = 60 Short string = "HTTP/gRPC server supporting various services" Use string = "playground" )
View Source
const SenzingToolsDatabaseURL = "sqlite3://na:na@/tmp/sqlite/G2C.db"
Variables ¶
View Source
var CompletionCmd = &cobra.Command{ Use: "completion", Short: "Generate bash completion for the command", Long: `To load completions, run: source < (playground completion) To load completions automatically on login, add this line to your .bashrc file: source < (playground completion) `, RunE: func(cmd *cobra.Command, args []string) error { _ = cmd _ = args return completionAction(os.Stdout) }, }
CompletionCmd represents the completion command.
View Source
var ContextVariables = append(ContextVariablesForMultiPlatform, ContextVariablesForOsArch...)
View Source
var ContextVariablesForMultiPlatform = []option.ContextVariable{ isInDevelopment, option.AvoidServe, option.Configuration, option.DatabaseURL, option.EngineInstanceName, option.EngineLogLevel, option.EngineSettings, option.GrpcPort, option.HTTPPort, option.LogLevel, option.ObserverOrigin, option.ObserverURL, option.ServerAddress, option.TtyOnly, option.XtermAllowedHostnames.SetDefault(getDefaultAllowedHostnames()), option.XtermArguments, option.XtermCommand, option.XtermConnectionErrorLimit, option.XtermKeepalivePingTimeout, option.XtermMaxBufferSizeBytes, }
View Source
var ContextVariablesForOsArch = []option.ContextVariable{}
View Source
var DocsCmd = &cobra.Command{ Use: "docs", Short: "Generate documentation for the command", RunE: func(cmd *cobra.Command, args []string) error { _ = args dir, err := cmd.Flags().GetString("dir") if err != nil { return wraperror.Errorf(err, "getting 'dir' value") } if dir == "" { if dir, err = os.MkdirTemp("", "playground"); err != nil { return wraperror.Errorf(err, "constructing cobra.Command") } } return DocsAction(os.Stdout, dir) }, }
DocsCmd represents the docs command.
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.
Click to show internal directories.
Click to hide internal directories.