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
29
30
31
32
33
34
35
36
37
package main
import (
"fmt"
"os"
"github.com/bloom42/flint/commands"
)
func fail(err string) {
fmt.Fprintln(os.Stderr, err)
os.Exit(3)
}
func main() {
if err := commands.RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(3)
}
/*config, err := getConfig()
//formatter, err := getFormatter(config.Formatter)
fmt.Println(config)
fmt.Println(err)
/*issuesc, errc := linter.Lint(config)
outputc, errc := formatter.Format(issuesc)
exitCode := 0
for out := range outputc {
fmt.Println(out)
}
os.Exit(exitCode)
*/
}