forked from godoctor/godoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
28 lines (22 loc) · 864 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2017-2018 Auburn University and others. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The godoctor command refactors Go code.
package main
import (
"fmt"
"os"
"github.com/godoctor/godoctor/engine"
"github.com/godoctor/godoctor/engine/cli"
)
// Name of the refactoring tool (Go Doctor). This can be overridden using:
// go build -ldflags "-X main.name 'Go Doctor'" github.com/godoctor/godoctor
var name string = "Go Doctor"
// Go Doctor version number. This can be overridden using:
// go build -ldflags "-X main.version 0.6" github.com/godoctor/godoctor
var version string = "0.6 (Beta)"
func main() {
aboutText := fmt.Sprintf("%s %s", name, version)
engine.AddDefaultRefactorings()
os.Exit(cli.Run(aboutText, os.Stdin, os.Stdout, os.Stderr, os.Args))
}