commands, log as info
This commit is contained in:
parent
cd4477b655
commit
a5cd89db91
@ -5,13 +5,14 @@ import (
|
||||
"log"
|
||||
|
||||
"git.front.kjuulh.io/kjuulh/char/pkg/register"
|
||||
"github.com/hashicorp/go-hclog"
|
||||
)
|
||||
|
||||
type GoCliPlugin struct{}
|
||||
|
||||
// Do implements register.Plugin
|
||||
func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error {
|
||||
log.Printf("received command: %s", cmd.CommandName)
|
||||
hclog.L().Info("received command: %s", cmd.CommandName)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user