package agent import ( "fmt" "forge.cadoles.com/Cadoles/emissary/internal/command/common" "forge.cadoles.com/Cadoles/emissary/internal/machineid" "github.com/pkg/errors" "github.com/urfave/cli/v2" ) func ShowThumbprintCommand() *cli.Command { flags := common.Flags() return &cli.Command{ Name: "show-thumbprint", Usage: "Show the current agent thumbprint", Flags: flags, Action: func(ctx *cli.Context) error { thumbprint, err := machineid.Get() if err != nil { return errors.WithStack(err) } fmt.Println(thumbprint) return nil }, } }