Skip to content
Snippets Groups Projects
Commit 6b3cf465 authored by Tamer Tas's avatar Tamer Tas
Browse files

log-level: omit the log-level setting temporarily

parent 2ed52b84
Branches
No related tags found
No related merge requests found
......@@ -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"
)
......@@ -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},
......
......@@ -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"
)
......@@ -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},
......
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment