cmd

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 34 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GaugeCmd = &cobra.Command{
		Use: "gauge <command> [flags] [args]",
		Example: `  gauge run specs/
  gauge run --parallel specs/`,
		Run: func(cmd *cobra.Command, args []string) {
			if gaugeVersion {
				printVersion()
				return
			}
			if len(args) < 1 {
				err := cmd.Help()
				if err != nil {
					logger.Errorf(true, "Unable to print help: %s", err.Error())
				}
			}
		},
		DisableAutoGenTag: true,
		PersistentPreRun: func(cmd *cobra.Command, args []string) {
			initLogger(cmd.Name())
			skel.CreateSkelFilesIfRequired()
			setGlobalFlags()
			initPackageFlags()
		},
	}
)

Functions

func InitHelp

func InitHelp(c *cobra.Command)

func Parse

func Parse() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL