From 91ffd101922dbb495cd8700fbe299bd7da71a1c0 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 8 Aug 2021 17:37:23 +0100 Subject: [PATCH] Remove "Keys: " from create auth key output This is based on the premis that "the user know what command they executed" and therefor know that the output is the key. This makes the command a lot more useful in scripts. --- cmd/headscale/cli/preauthkeys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/headscale/cli/preauthkeys.go b/cmd/headscale/cli/preauthkeys.go index eb9d182c..e90aaeb6 100644 --- a/cmd/headscale/cli/preauthkeys.go +++ b/cmd/headscale/cli/preauthkeys.go @@ -116,6 +116,6 @@ var createPreAuthKeyCmd = &cobra.Command{ fmt.Println(err) return } - fmt.Printf("Key: %s\n", k.Key) + fmt.Printf("%s\n", k.Key) }, }