commands, log as info
This commit is contained in:
parent
c724bff698
commit
abc0d80e80
@ -12,7 +12,7 @@ type GoCliPlugin struct{}
|
|||||||
|
|
||||||
// Do implements register.Plugin
|
// Do implements register.Plugin
|
||||||
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
|
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
|
||||||
hclog.L().Info("received command: %s", cmd.CommandName)
|
hclog.L().Info("received command", "commandName", cmd.CommandName)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ type GoCliPlugin struct{}
|
|||||||
|
|
||||||
// Do implements register.Plugin
|
// Do implements register.Plugin
|
||||||
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
|
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
|
||||||
hclog.L().Info("received command: %s", cmd.CommandName)
|
hclog.L().Info("received command", "commandName", cmd.CommandName)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user