devcmd

package
v0.0.0-...-9c55465 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DevToolsCmd = &gcli.Command{
	Name:    "dev",
	Aliases: []string{"dt", "devtool"},
	Desc:    "provide some useful dev tools commands",
	Subs: []*gcli.Command{
		HotReloadServe,
		IDEAToolCmd,
		ProjectCmd,
		gencmd.CodeGenCmd,
		javacmd.JavaToolCmd,
		gocmd.GoToolsCmd,
		phpcmd.PhpToolsCmd,
		sqlcmd.SQLToolCmd,
		jsoncmd.YamlToolCmd,
	},
}

DevToolsCmd command

View Source
var HotReloadServe = &gcli.Command{
	Name:    "hot-reload",
	Aliases: []string{"hotreload", "hotr"},
	Desc:    "hot reload serve on files modified",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errors.New("TODO")
	},
}

HotReloadServe instance

View Source
var IDEAListCmd = &gcli.Command{
	Name:    "list",
	Aliases: []string{"ls"},
	Desc:    "list installed tools on local",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		jb := idetool.NewJetBrains()

		show.AList("installed tools", jb.Installed())
		return nil
	},
}

IDEAListCmd instance

View Source
var IDEAToolCmd = &gcli.Command{
	Name:    "idea",
	Aliases: []string{"ide", "ide-tool", "jb"},
	Desc:    "find and list jetBrains tools information",
	Config: func(c *gcli.Command) {

	},
	Subs: []*gcli.Command{
		IDEAListCmd,
		IDEConfigCmd,
	},
}

IDEAToolCmd instance

View Source
var IDEConfigCmd = &gcli.Command{
	Name:    "config",
	Aliases: []string{"cfg", "options"},
	Desc:    "display some tool config",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {

		return errors.New("TODO")
	},
}

IDEConfigCmd instance

View Source
var ProjectAddCmd = &gcli.Command{
	Name:    "add",
	Aliases: []string{"save"},
	Desc:    "add new project to managements",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.New("TODO")
	},
}

ProjectAddCmd command

View Source
var ProjectCmd = &gcli.Command{
	Name:    "project",
	Aliases: []string{"proj", "projects"},
	Desc:    "simple local projects manage tool commands",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.Raw("TODO")
	},
	Subs: []*gcli.Command{
		ProjectListCmd,
		ProjectAddCmd,
		ProjectRemoveCmd,
		ProjectOpenCmd,
		ProjectRunCmd,
	},
}

ProjectCmd instance

View Source
var ProjectListCmd = &gcli.Command{
	Name:    "list",
	Aliases: []string{"ls"},
	Desc:    "list all management projects",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.New("TODO")
	},
}

ProjectListCmd command

View Source
var ProjectOpenCmd = &gcli.Command{
	Name: "open",

	Desc: "open input project by setting editor",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.New("TODO")
	},
}

ProjectOpenCmd command

View Source
var ProjectRemoveCmd = &gcli.Command{
	Name:    "del",
	Aliases: []string{"rm", "remove", "delete"},
	Desc:    "remove one or more projects from managements",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.New("TODO")
	},
}

ProjectRemoveCmd command

View Source
var ProjectRunCmd = &gcli.Command{
	Name:    "run",
	Aliases: []string{"exec"},
	Desc:    "execute command on the project dir",
	Config: func(c *gcli.Command) {

	},
	Func: func(c *gcli.Command, _ []string) error {
		return errorx.New("TODO")
	},
}

ProjectRunCmd command

Functions

func NewProxyServerCmd

func NewProxyServerCmd() *gcli.Command

NewProxyServerCmd create a new command.

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