more gofmt
This commit is contained in:
parent
c69745b52b
commit
110afc7e8b
2 changed files with 8 additions and 8 deletions
|
@ -40,7 +40,7 @@ var listGroupsCmd = &cobra.Command{
|
|||
c := make(chan signald.Response)
|
||||
go s.Listen(c)
|
||||
for {
|
||||
message := <- c
|
||||
message := <-c
|
||||
if message.ID == requestID {
|
||||
for _, group := range message.Data.Groups {
|
||||
fmt.Println(group.Name)
|
||||
|
|
|
@ -49,7 +49,7 @@ func init() {
|
|||
cobra.OnInitialize(initConfig)
|
||||
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.signald-cli.yaml)")
|
||||
RootCmd.PersistentFlags().StringVarP(&socketPath, "socket", "s", "/var/run/signald/signald.sock", "the path to the signald socket file")
|
||||
s = &signald.Signald{SocketPath: socketPath,}
|
||||
s = &signald.Signald{SocketPath: socketPath}
|
||||
s.Connect()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue