-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.go
42 lines (36 loc) · 892 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package main
import (
"log"
"os"
"sort"
"github.com/baranovskis/bmd-converter/bmd/s1"
"github.com/baranovskis/bmd-converter/bmd/s9"
"github.com/urfave/cli"
)
const VERSION = "1.5"
func main() {
app := &cli.App{
Version: VERSION,
Name: "bmd-converter",
Usage: "tool for .bmd file conversion",
UsageText: "bmd-converter.exe [global options] command [command options] [arguments...]\n" +
"\t * bmd-converter.exe <client season> <bmd type> <file path>\n" +
"\t * bmd-converter.exe s1 text text.bmd - decode file to .csv\n" +
"\t * bmd-converter.exe s1 text text.csv - encode file to .bmd",
Authors: []cli.Author{
{
Name: "NexT",
Email: "[email protected]",
},
},
Commands: []cli.Command{
s1.Commands,
s9.Commands,
},
}
sort.Sort(cli.CommandsByName(app.Commands))
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}