Remove things that aren't supported by the version of cobra in debian

This commit is contained in:
Finn 2021-02-02 21:49:17 -08:00
parent c93cd89002
commit 508af1e705
2 changed files with 2 additions and 7 deletions

View file

@ -67,18 +67,13 @@ PS> signaldctl completion powershell > signaldctl.ps1
`,
DisableFlagsInUseLine: true,
Annotations: map[string]string{common.AnnotationNoSocketConnection: "true"},
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
Args: cobra.ExactValidArgs(1),
ValidArgs: []string{"bash", "zsh"},
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
common.Must(cmd.Root().GenBashCompletion(os.Stdout))
case "zsh":
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
View file

@ -3,7 +3,7 @@
export DH_GOLANG_EXCLUDES := tools/
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.Commit=$(CI_BUILD_REF)