From 4a18f9b96f7d068462a0dde5d295d63843e8ebf8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 2 Aug 2019 11:26:14 +0200 Subject: [PATCH] Update show command output for programmatic usage --- pmctl/main.go | 2 +- pmctl/show.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pmctl/main.go b/pmctl/main.go index 65caa5f4..566028f0 100644 --- a/pmctl/main.go +++ b/pmctl/main.go @@ -59,7 +59,7 @@ func init() { func main() { // set meta info - info.Set("Portmaster Control", "0.2.8", "AGPLv3", true) + info.Set("Portmaster Control", "0.2.9", "AGPLv3", true) // for debugging // log.Start() diff --git a/pmctl/show.go b/pmctl/show.go index 277b27b9..19985b47 100644 --- a/pmctl/show.go +++ b/pmctl/show.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "log" "os" "strings" @@ -81,8 +80,7 @@ func show(cmd *cobra.Command, opts *Options) error { return fmt.Errorf("could not get component: %s", err) } - log.Println("command:") - log.Printf("%s %s\n", file.Path(), strings.Join(args, " ")) + fmt.Printf("%s %s\n", file.Path(), strings.Join(args, " ")) return nil }