global

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = clapp.Command{
	Cobra: &cobra.Command{
		Use:   "global",
		Short: "Configure global settings",
		Long:  "Configure global settings or generate default config file",
		RunE: func(cmd *cobra.Command, args []string) error {
			var err error
			var example bool
			var c clapp.CommandController
			example, err = cmd.Flags().GetBool("example")
			if example {
				c = command.ConfigureGlobalExample{}
			} else {
				c = command.ConfigureGlobal{}
			}

			err = c.Execute()
			return err
		},
		SilenceErrors: true,
		SilenceUsage:  true,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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