Lines Matching refs:args
51 func (c Command) addCodebase(args []string) error {
52 if len(args) < 5 {
55 args[0], args[1], args[2])
57 name := args[3]
58 path := args[4]
67 func (c Command) defaultCodebase(args []string) error {
68 if len(args) < 4 {
71 args[0], args[1], args[2])
73 name := args[3]
96 func (c Command) removeCodebase(args []string) error {
97 if len(args) < 4 {
100 args[0], args[1], args[2])
102 name := args[3]
111 func (c Command) createWorkspace(args []string) error {
114 switch len(args) {
119 args[0], args[1], args[2])
124 codebaseName = args[4]
128 args[0], args[1], args[2])
131 workspaceName := args[3]
140 func (c Command) recreateWorkspace(args []string) error {
141 if len(args) < 4 {
144 args[0], args[1], args[2])
147 workspaceName := args[3]
164 func (c Command) removeWorkspace(args []string) error {
165 if len(args) < 4 {
168 args[0], args[1], args[2])
170 name := args[3]
179 func (c Command) editProject(args []string) error {
180 if len(args) < 3 {
183 args[0], args[1])
185 path := args[2]
196 func (c Command) Handle(args []string) error {
197 if len(args) < 2 || args[1] == "help" {
202 command := args[1]
206 if len(args) < 3 {
209 subcommand := args[2]
212 return c.addCodebase(args)
214 return c.removeCodebase(args)
216 return c.defaultCodebase(args)
224 if len(args) < 3 {
227 subcommand := args[2]
230 return c.createWorkspace(args)
232 return c.recreateWorkspace(args)
234 return c.removeWorkspace(args)
242 return c.editProject(args)