codecmd

package
v0.0.0-...-6b9be9b Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodeDbCmd = &cobra.Command{

	Use:   "codedb [flag]",
	Short: "Make code of one table",

	Run: func(cmd *cobra.Command, args []string) {
		if len(cmd.Flags().Args()) > 0 {
			table := cmd.Flags().Arg(0)
			var dbreq = pagedb.Default()
			var err = dbreq.Meta2CodeFile(table)
			if err != nil {
				golog.Error(err)
			}
		} else {
			golog.Info("webframe codedb tablename")
		}
	},
}
View Source
var CodeEsCmd = &cobra.Command{

	Use:   "codees [flag]",
	Short: "Make code of one elastic'index",

	Run: func(cmd *cobra.Command, args []string) {
		if len(cmd.Flags().Args()) > 0 {
			indexName := cmd.Flags().Arg(0)
			var err = metafacade.FindBeanMetaFacade().MetaEs(indexName)
			if err != nil {
				golog.Info(err)
			} else {
				golog.Info("webframe codees indexname")
			}
		}
	},
}

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