3 Star 0 Fork 1

Gitee 极速下载 / ntt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/nokia/ntt
克隆/下载
completion.go 669 Bytes
一键复制 编辑 原始数据 按行查看 历史
Matthias Simon 提交于 2022-09-11 10:42 . Simplify repository layout (#614)
package main
import (
"os"
"github.com/spf13/cobra"
)
var CompletionCommand = &cobra.Command{
Use: "completion",
Short: "Output shell completion code",
Long: `To load completion run
. <(ntt completion)
To configure your bash shell to load completions for each session add to your bashrc
# ~/.bashrc or ~/.profile
. <(ntt completion)
Note, if bash-completion is not installed on Linux, please install the
'bash-completion' package via your distribution's package manager.
`,
Run: func(cmd *cobra.Command, args []string) {
RootCommand.GenBashCompletion(os.Stdout)
},
}
func init() {
RootCommand.AddCommand(CompletionCommand)
}
1
https://gitee.com/mirrors/ntt.git
git@gitee.com:mirrors/ntt.git
mirrors
ntt
ntt
master

搜索帮助