Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateConfCmd = &cobra.Command{ Use: "userconf", GroupID: "exec", Short: "生成用户端配置文件", Run: func(cmd *cobra.Command, args []string) { SaveExampleConf(savePath) }, Example: "portmap_linux_amd64 userconf -p userconf.yaml", }
View Source
var RunCmd = &cobra.Command{ Use: "userrun", GroupID: "exec", Short: "运行用户端连接软件", Run: func(cmd *cobra.Command, args []string) { LoadFromPath(confPath) instance := NewInstance(config) instance.Run() }, Example: "portmap_linux_amd64 userrun -c userconf.yaml", }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.