-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsfpackager.go
More file actions
51 lines (43 loc) · 820 Bytes
/
sfpackager.go
File metadata and controls
51 lines (43 loc) · 820 Bytes
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
43
44
45
46
47
48
49
50
51
package main
import (
"fmt"
"os"
"github.com/codegangsta/cli"
)
func main() {
app := cli.NewApp()
app.Name = "sfpackager"
app.Commands = []cli.Command{
cli.Command{
Name: "package",
Aliases: []string{"p"},
Usage: "Packages stuff",
Action: Package,
Flags: []cli.Flag{
cli.StringFlag{
Name: "sfprojects, s",
Value: "",
Usage: "Path to the root of your solution or a specific .sfproj file",
},
cli.StringFlag{
Name: "output, o",
Value: "",
Usage: "The base folder to package to. This folder will be cleared on run",
},
},
},
}
app.Action = func(c *cli.Context) {
cli.ShowAppHelp(c)
os.Exit(1)
}
app.Run(os.Args)
}
// Exit exit gracefully
var Exit = func(message string) {
fmt.Printf(message)
os.Exit(1)
}
/*
-sfprojects
*/