feature: Add goctl completion (#1505)

* feature: Add `goctl completion`

* Update const

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2022-02-08 10:50:21 +08:00
committed by GitHub
parent bb75cc796e
commit 8bd89a297a
5 changed files with 166 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
package completion
const BashCompletionFlag = `generate-goctl-completion`
const defaultCompletionFilename = "goctl_autocomplete"
const (
magic = 1 << iota
flagZsh
flagBash
)