Documentation ¶
Overview ¶
The cmd package is used for Cobra integration.
0.0.1 Created by make-go-github-file.yaml on Fri Mar 31 19:47:08 UTC 2023
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "view-xterm", Short: "view-xterm short description", Long: ` view-xterm long description. `, PreRun: func(cobraCommand *cobra.Command, args []string) { loadConfigurationFile(cobraCommand) loadOptions(cobraCommand) cobraCommand.SetVersionTemplate(constant.VersionTemplate) }, RunE: func(cmd *cobra.Command, args []string) error { var err error = nil ctx := context.TODO() examplePackage := &examplepackage.ExamplePackageImpl{ Something: "Main says 'Hi!'", } err = examplePackage.SaySomething(ctx) return err }, Version: helper.MakeVersion(githubVersion, githubIteration), }
RootCmd represents the command.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.