mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Update show command output for programmatic usage
This commit is contained in:
parent
e6705b5463
commit
4a18f9b96f
2 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue