command

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 32 Imported by: 0

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())
	},
}

Functions

func AddKernelCommand

func AddKernelCommand(root *cobra.Command)

Types

type Proxy

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

Proxy

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