cmd

package
v0.0.0-...-e9f677e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v6.1.1"

Version defines the current Pop version. this version will also be used by soda(also buffalo-pop)

Variables

View Source
var RootCmd = &cobra.Command{
	SilenceUsage: true,
	Short:        "A tasty treat for all your database needs",
	PersistentPreRun: func(c *cobra.Command, args []string) {
		fmt.Printf("pop %s\n\n", Version)

		if !c.Flags().Changed("env") {
			env = defaults.String(os.Getenv("GO_ENV"), env)
		}

		setConfigLocation()
		pop.LoadConfigFile()
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		if !version {
			return cmd.Help()
		}
		return nil
	},
}

RootCmd is the entry point of soda CLI.

Functions

func Execute

func Execute()

Execute runs RunCmd.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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