0 Star 0 Fork 0

蒋佳李/vault

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
print.go 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
蒋佳李 提交于 2021-03-25 16:28 . 更新
package command
import (
"strings"
"gitee.com/jiangjiali/vault/sdk/helper/complete"
"gitee.com/jiangjiali/vault/sdk/helper/mitchellh/cli"
)
var _ cli.Command = (*PrintCommand)(nil)
var _ cli.CommandAutocomplete = (*PrintCommand)(nil)
type PrintCommand struct {
*BaseCommand
}
func (c *PrintCommand) Synopsis() string {
return "打印运行时配置"
}
func (c *PrintCommand) Help() string {
helpText := `
使用: vault print <子命令>
此命令将用于与服务器运行时值交互的子命令分组。
子命令:
token 当前正在使用的令牌
`
return strings.TrimSpace(helpText)
}
func (c *PrintCommand) AutocompleteArgs() complete.Predictor {
return nil
}
func (c *PrintCommand) AutocompleteFlags() complete.Flags {
return nil
}
func (c *PrintCommand) Run(args []string) int {
return cli.RunResultHelp
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jiangjiali/vault.git
git@gitee.com:jiangjiali/vault.git
jiangjiali
vault
vault
v1.1.11

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385