Skip to content

Commit

Permalink
log-level: omit the log-level setting temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrts committed Feb 27, 2017
1 parent 2ed52b8 commit 6b3cf46
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/tmrts/boilr/pkg/util/exit"
"github.com/tmrts/boilr/pkg/util/git"
"github.com/tmrts/boilr/pkg/util/osutil"
"github.com/tmrts/boilr/pkg/util/tlog"
"github.com/tmrts/boilr/pkg/util/validate"
)

Expand All @@ -21,8 +20,6 @@ var Download = &cli.Command{
Short: "Download a project template from a github repository to template registry",
// FIXME Half-Updates leave messy templates
Run: func(c *cli.Command, args []string) {
tlog.SetLogLevel(GetStringFlag(c, "log-level"))

MustValidateArgs(args, []validate.Argument{
{"template-repo", validate.UnixPath},
{"template-tag", validate.AlphanumericExt},
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/tmrts/boilr/pkg/template"
"github.com/tmrts/boilr/pkg/util/exit"
"github.com/tmrts/boilr/pkg/util/osutil"
"github.com/tmrts/boilr/pkg/util/tlog"
"github.com/tmrts/boilr/pkg/util/validate"
)

Expand All @@ -33,8 +32,6 @@ var Use = &cli.Command{
Use: "use <template-tag> <target-dir>",
Short: "Execute a project template in the given directory",
Run: func(cmd *cli.Command, args []string) {
tlog.SetLogLevel(GetStringFlag(cmd, "log-level"))

MustValidateArgs(args, []validate.Argument{
{"template-tag", validate.UnixPath},
{"target-dir", validate.UnixPath},
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ var Version = &cli.Command{
Use: "version",
Short: "Show the boilr version information",
Run: func(c *cli.Command, args []string) {
tlog.SetLogLevel(GetStringFlag(c, "log-level"))

MustValidateArgs(args, []validate.Argument{})

shouldntPrettify := GetBoolFlag(c, "dont-prettify")
Expand Down

0 comments on commit 6b3cf46

Please sign in to comment.