cmd

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoMigrateCmd = &cobra.Command{
	Use:   "migrate",
	Short: "A auto_migrate for Jsonix",
	Args:  cobra.NoArgs,
	RunE:  AutoMigrateRun,
}
View Source
var GenerateCmd = &cobra.Command{
	Use:   "gen",
	Short: "A generator for Jsonix",
	Args:  cobra.ArbitraryArgs,
	RunE:  generateRun,
}
View Source
var InitCmd = &cobra.Command{
	Use:   "init",
	Short: "A init for Jsonix",
	Args:  cobra.NoArgs,
	RunE:  initRun,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "jsonix",
	Short: "A server for web applications",
}

RootCmd 定义 CLI 的根命令

View Source
var ServerCmd = &cobra.Command{
	Use:   "server",
	Short: "A flexible Go configuration management tool",
	RunE:  serverRun,
}

Functions

func AutoMigrateRun

func AutoMigrateRun(cmd *cobra.Command, args []string) error

func AutoMigrateSetup

func AutoMigrateSetup(cmd *cobra.Command)

func EnvSetup

func EnvSetup(cmd *cobra.Command)

func Execute

func Execute()

Execute 入口,加载所有命令

func ModeEnvHandler

func ModeEnvHandler(e string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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