command

package
v0.0.0-...-8746e94 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 34 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoCommand = &cobra.Command{
	Use:   "demo",
	Short: "demo for framework",
	Run: func(c *cobra.Command, args []string) {
		container := c.GetContainer()
		appService := container.MustMake(contract.AppKey).(contract.App)
		fmt.Println("app base folder:", appService.BaseFolder())
	},
}

helpCommand show current envionment

Functions

func AddKernelCommands

func AddKernelCommands(root *cobra.Command)

AddKernelCommands will add all command/* to root command

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy 代表serve启动的服务器代理

func NewProxy

func NewProxy(c framework.Container) *Proxy

NewProxy 初始化一个Proxy

Jump to

Keyboard shortcuts

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