From 757beea4a8e55494bdb196937f0ab2363dafa41d Mon Sep 17 00:00:00 2001 From: kscarlett Date: Thu, 30 Aug 2018 15:39:19 +0100 Subject: [PATCH] style(tools): Remove unneeded comment --- cmd/root.go | 64 ----------------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 424ef90..9636eeb 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -72,67 +72,3 @@ func initialize() { log.SetFormatter(&log.TextFormatter{}) } } - -/*import ( - "fmt" - "io" - "io/ioutil" - "os" - - "github.com/hussar-lang/hussar/evaluator" - "github.com/hussar-lang/hussar/lexer" - "github.com/hussar-lang/hussar/object" - "github.com/hussar-lang/hussar/parser" - "github.com/hussar-lang/hussar/repl" - - log "github.com/sirupsen/logrus" - "github.com/ttacon/chalk" - "gopkg.in/alecthomas/kingpin.v2" -) - -var ( - GitCommit string - VersionString string - - app = kingpin.New("hussar", "The Hussar interpreter") - verbose = app.Flag("verbose", "Enable verbose logging.").Short('v').Bool() - - // TODO: run interactive mode if no subcommand was given (see #1) - interactive = app.Command("interactive", "Interactive REPL") - - run = app.Command("run", "Run Hussar code") - runFile = run.Flag("file", "Code to run").Required().Short('f').ExistingFile() -) - -func init() { - log.SetFormatter(&log.TextFormatter{FullTimestamp: true}) - log.SetOutput(os.Stdout) -} - -func main() { - app.Version(fmt.Sprintf("%s (%s)", VersionString, GitCommit)) - args, err := app.Parse(os.Args[1:]) - - if *verbose { - log.SetLevel(log.DebugLevel) - } else { - log.SetLevel(log.WarnLevel) - } - - switch kingpin.MustParse(args, err) { - case run.FullCommand(): - log.WithFields(log.Fields{ - "File": *runFile, - "Verbose": *verbose, - }).Debug("Received run command") - - runFromFile() - case interactive.FullCommand(): - startRepl() - } -} - - - - -*/