Skip to content

Commit

Permalink
Merge pull request #18 from ak1ra24/fix-testcmd-verbose-option
Browse files Browse the repository at this point in the history
remove verbose option of test command
  • Loading branch information
AkiRa committed Feb 2, 2020
2 parents cca0ced + 5b1eba4 commit 2c6fc3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func init() {
reconfCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose (default: false)")
execCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose (default: false)")
downCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose (default: false)")
testCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose (default: false)")

// Cobra also supports local flags, which will only run
// when this action is called directly.
Expand Down
4 changes: 2 additions & 2 deletions cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
package cmd

import (
"fmt"
"os"
"strings"

"github.com/spf13/cobra"
"github.com/tinynetwork/tinet/internal/pkg/shell"
"github.com/tinynetwork/tinet/internal/pkg/utils"
)

// testCmd represents the test command
Expand All @@ -16,7 +16,7 @@ var testCmd = &cobra.Command{
Short: "Execute tests",
Run: func(cmd *cobra.Command, args []string) {
tnTestCmds := shell.TnTestCmdExec(tnconfig.Test)
utils.PrintCmd(os.Stdout, strings.Join(tnTestCmds, "\n"), verbose)
fmt.Fprintln(os.Stdout, strings.Join(tnTestCmds, "\n"))
},
}

Expand Down

0 comments on commit 2c6fc3a

Please sign in to comment.