Ai
1 Star 0 Fork 0

tomcard/gotron-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
completion.go 472 Bytes
一键复制 编辑 原始数据 按行查看 历史
zzq 提交于 2021-04-02 17:07 +08:00 . first commit
package cmd
import (
"os"
"github.com/spf13/cobra"
)
func init() {
cmdCompletion := &cobra.Command{
Use: "completion",
Short: "Generates bash completion scripts",
Long: `To load completion, run:
. <(tronctl completion)
Add the line to your ~/.bashrc to enable completion for each bash session.
`,
RunE: func(cmd *cobra.Command, args []string) error {
RootCmd.GenBashCompletion(os.Stdout)
return nil
},
}
RootCmd.AddCommand(cmdCompletion)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kand_admin/gotron-sdk.git
git@gitee.com:kand_admin/gotron-sdk.git
kand_admin
gotron-sdk
gotron-sdk
044d4103d5c5

搜索帮助