commands

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PremkitCmd = &cobra.Command{
	Use:   "premkit",
	Short: "premkit enables installable software",
	Long:  "premkit is the reverse proxy, used to ship installable software",

	RunE: func(cmd *cobra.Command, args []string) error {
		if err := InitializeConfig(); err != nil {
			return err
		}

		cmd.Usage()
		os.Exit(-1)
		return nil
	},
}

PremkitCmd is the main (root) command for the CLI.

Functions

func AddCommands

func AddCommands()

AddCommands will add all child commands to the PremkitCmd

func Execute

func Execute()

Execute adds all child commands to the room command PremkitCmd and sets flags

func InitializeConfig

func InitializeConfig(subCmdVs ...*cobra.Command) error

InitializeConfig initializes the config environment with defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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