codecmd

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbCmd = &cobra.Command{
	Use:   "db",
	Short: "db table : a tool of goweb menu",
	Long:  `This is a goweb code tool using Cobra`,
	Run: func(cmd *cobra.Command, args []string) {
		if len(cmd.Flags().Args()) > 0 {
			db := cmd.Flags().Arg(0)
			metafacade.FindBeanMetaFacade().MetaDb(db)
			return
		}
		golog.Info("goweb code db table")
	},
}
View Source
var EsCmd = &cobra.Command{
	Use:   "es",
	Short: "es index : a tool of goweb menu",
	Long:  `This is a goweb es tool using Cobra`,
	Run: func(cmd *cobra.Command, args []string) {
		if len(cmd.Flags().Args()) > 0 {
			es := cmd.Flags().Arg(0)
			metafacade.FindBeanMetaFacade().MetaEs(es)
			return
		}
		golog.Info("gow`eb code es index")
	},
}
View Source
var GocodeCmds = []*cobra.Command{
	DbCmd,
	EsCmd,
}

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