Remove things that aren't supported by the version of cobra in debian
This commit is contained in:
parent
c93cd89002
commit
508af1e705
2 changed files with 2 additions and 7 deletions
|
@ -67,18 +67,13 @@ PS> signaldctl completion powershell > signaldctl.ps1
|
||||||
`,
|
`,
|
||||||
DisableFlagsInUseLine: true,
|
DisableFlagsInUseLine: true,
|
||||||
Annotations: map[string]string{common.AnnotationNoSocketConnection: "true"},
|
Annotations: map[string]string{common.AnnotationNoSocketConnection: "true"},
|
||||||
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
|
ValidArgs: []string{"bash", "zsh"},
|
||||||
Args: cobra.ExactValidArgs(1),
|
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
switch args[0] {
|
switch args[0] {
|
||||||
case "bash":
|
case "bash":
|
||||||
common.Must(cmd.Root().GenBashCompletion(os.Stdout))
|
common.Must(cmd.Root().GenBashCompletion(os.Stdout))
|
||||||
case "zsh":
|
case "zsh":
|
||||||
common.Must(cmd.Root().GenZshCompletion(os.Stdout))
|
common.Must(cmd.Root().GenZshCompletion(os.Stdout))
|
||||||
case "fish":
|
|
||||||
common.Must(cmd.Root().GenFishCompletion(os.Stdout, true))
|
|
||||||
case "powershell":
|
|
||||||
common.Must(cmd.Root().GenPowerShellCompletion(os.Stdout))
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -3,7 +3,7 @@
|
||||||
export DH_GOLANG_EXCLUDES := tools/
|
export DH_GOLANG_EXCLUDES := tools/
|
||||||
|
|
||||||
PKG := gitlab.com/signald/signald-go
|
PKG := gitlab.com/signald/signald-go
|
||||||
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(DEB_VERSION)
|
# GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Version=$(DEB_VERSION)
|
||||||
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Branch=$(shell git rev-parse HEAD)
|
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Branch=$(shell git rev-parse HEAD)
|
||||||
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Commit=$(CI_BUILD_REF)
|
GO_LDFLAGS += -X $(PKG)/cmd/signaldctl/common.Commit=$(CI_BUILD_REF)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue