@@ -11,7 +11,7 @@ func getInitCommand() *cli.Command {
11
11
return & cli.Command {
12
12
Name : "init" ,
13
13
Usage : "initialize gitlab-flow, generate default config file and sqlite DB " +
14
- "related to the path (default path is `~/.gitlab-flow/`) " ,
14
+ "related to the path" ,
15
15
Category : "tools" ,
16
16
Flags : []cli.Flag {
17
17
& cli.StringFlag {
@@ -26,16 +26,8 @@ func getInitCommand() *cli.Command {
26
26
Required : true ,
27
27
Usage : "gitlab_host is the domain of YOUR gitlab server." ,
28
28
},
29
- & cli.StringFlag {
30
- Name : "conf_path" ,
31
- Aliases : []string {"c" },
32
- Value : conf .DefaultConfPath (),
33
- DefaultText : conf .DefaultConfPath (),
34
- Required : false ,
35
- Usage : "conf_path is the directory which contains your config and local database." ,
36
- },
37
29
},
38
- ArgsUsage : "gitlab-flow init - s ACCESS_TOKEN -h GITLAB_HOST [-c CONF_PATH]" ,
30
+ ArgsUsage : "- s ACCESS_TOKEN -h GITLAB_HOST [-c, --conf_path CONF_PATH]" ,
39
31
Action : func (c * cli.Context ) error {
40
32
accessToken := c .String ("access_token" )
41
33
host := c .String ("gitlab_host" )
@@ -60,55 +52,19 @@ func getInitCommand() *cli.Command {
60
52
// gitlab-flow feature [command options] -c --conf_path
61
53
func getFeatureCommand () * cli.Command {
62
54
return & cli.Command {
63
- Name : "feature" ,
64
- Usage : "managing the works in developing." ,
65
- ArgsUsage : "gitlab-flow hotfix [-c, --conf_path] [-v, --debug]" ,
66
- Category : "feature" ,
67
- Flags : []cli.Flag {
68
- & cli.StringFlag {
69
- Name : "conf_path" ,
70
- Aliases : []string {"c" },
71
- Value : conf .DefaultConfPath (),
72
- DefaultText : conf .DefaultConfPath (),
73
- Usage : "-c, --conf_path" ,
74
- Required : false ,
75
- },
76
- & cli.BoolFlag {
77
- Name : "debug" ,
78
- Aliases : []string {"v" },
79
- Value : false ,
80
- Usage : "-v, --debug " ,
81
- Required : false ,
82
- },
83
- },
55
+ Name : "feature" ,
56
+ Usage : "managing the works in developing." ,
57
+ Category : "feature" ,
84
58
Subcommands : getFeatureSubCommands (),
85
59
}
86
60
}
87
61
88
62
// gitlab-flow hotfix [command options] -p --specProject
89
63
func getHotfixCommand () * cli.Command {
90
64
return & cli.Command {
91
- Name : "hotfix" ,
92
- Usage : "managing the works in hotfix." ,
93
- ArgsUsage : "gitlab-flow hotfix [-c, --conf_path] [-v, --debug]" ,
94
- Category : "hotfix" ,
95
- Flags : []cli.Flag {
96
- & cli.StringFlag {
97
- Name : "conf_path" ,
98
- Aliases : []string {"c" },
99
- Value : conf .DefaultConfPath (),
100
- DefaultText : conf .DefaultConfPath (),
101
- Usage : "-c, --conf_path" ,
102
- Required : false ,
103
- },
104
- & cli.BoolFlag {
105
- Name : "debug" ,
106
- Aliases : []string {"v" },
107
- Value : false ,
108
- Usage : "-v, --debug " ,
109
- Required : false ,
110
- },
111
- },
65
+ Name : "hotfix" ,
66
+ Usage : "managing the works in hotfix." ,
67
+ Category : "hotfix" ,
112
68
Subcommands : getHotfixSubCommands (),
113
69
}
114
70
}
@@ -117,26 +73,8 @@ func getHotfixCommand() *cli.Command {
117
73
func getDashCommand () * cli.Command {
118
74
return & cli.Command {
119
75
Name : "dash" ,
120
- Usage : "gitlab-flow dash" ,
121
- Description : "overview of local development" ,
76
+ Usage : "overview of local development" ,
122
77
Category : "dash" ,
123
- Flags : []cli.Flag {
124
- & cli.StringFlag {
125
- Name : "conf_path" ,
126
- Aliases : []string {"c" },
127
- Value : conf .DefaultConfPath (),
128
- DefaultText : conf .DefaultConfPath (),
129
- Usage : "-c, --conf_path" ,
130
- Required : false ,
131
- },
132
- & cli.BoolFlag {
133
- Name : "debug" ,
134
- Aliases : []string {"v" },
135
- Value : false ,
136
- Usage : "-v, --debug " ,
137
- Required : false ,
138
- },
139
- },
140
78
Subcommands : getDashSubCommands (),
141
79
}
142
80
}
0 commit comments