Update show command output for programmatic usage
This commit is contained in:
@@ -59,7 +59,7 @@ func init() {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// set meta info
|
// set meta info
|
||||||
info.Set("Portmaster Control", "0.2.8", "AGPLv3", true)
|
info.Set("Portmaster Control", "0.2.9", "AGPLv3", true)
|
||||||
|
|
||||||
// for debugging
|
// for debugging
|
||||||
// log.Start()
|
// log.Start()
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -81,8 +80,7 @@ func show(cmd *cobra.Command, opts *Options) error {
|
|||||||
return fmt.Errorf("could not get component: %s", err)
|
return fmt.Errorf("could not get component: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("command:")
|
fmt.Printf("%s %s\n", file.Path(), strings.Join(args, " "))
|
||||||
log.Printf("%s %s\n", file.Path(), strings.Join(args, " "))
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user