Skip to content

Commit

Permalink
style(tools): Remove unneeded comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kscarlett committed Aug 30, 2018
1 parent db115b4 commit 757beea
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
*/

0 comments on commit 757beea

Please sign in to comment.