Fix group leave

This commit is contained in:
Finn 2021-02-11 17:37:07 -08:00
parent 2f84cb4f3c
commit 37291ba3bd
3 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
signaldctl: signald/client-protocol signaldctl: signald/client-protocol cmd/signaldctl
go build -ldflags '-X gitlab.com/signald/signald-go/cmd/signaldctl/common.Version=$(shell git describe) -X gitlab.com/signald/signald-go/cmd/signaldctl/common.Branch=$(shell git rev-parse --abbrev-ref HEAD) -X gitlab.com/signald/signald-go/cmd/signaldctl/common.Commit=$(shell git rev-parse HEAD)' -o signaldctl ./cmd/signaldctl go build -ldflags '-X gitlab.com/signald/signald-go/cmd/signaldctl/common.Version=$(shell git describe) -X gitlab.com/signald/signald-go/cmd/signaldctl/common.Branch=$(shell git rev-parse --abbrev-ref HEAD) -X gitlab.com/signald/signald-go/cmd/signaldctl/common.Commit=$(shell git rev-parse HEAD)' -o signaldctl ./cmd/signaldctl
protocol.json: protocol.json:

View file

@ -84,5 +84,5 @@ var (
) )
func init() { func init() {
AcceptGroupInvitationCmd.Flags().StringVarP(&account, "account", "a", "", "the signald account to use") LeaveGroupCmd.Flags().StringVarP(&account, "account", "a", "", "the signald account to use")
} }

View file

@ -19,6 +19,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/accept" "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/accept"
"gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/leave"
"gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/list" "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/list"
"gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/show" "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/group/show"
) )
@ -32,4 +33,5 @@ func init() {
GroupCmd.AddCommand(accept.AcceptGroupInvitationCmd) GroupCmd.AddCommand(accept.AcceptGroupInvitationCmd)
GroupCmd.AddCommand(list.ListGroupCmd) GroupCmd.AddCommand(list.ListGroupCmd)
GroupCmd.AddCommand(show.ShowGroupCmd) GroupCmd.AddCommand(show.ShowGroupCmd)
GroupCmd.AddCommand(leave.LeaveGroupCmd)
} }