(name string)
| 215 | } |
| 216 | |
| 217 | func AppCommand(name string) *cli.Command { |
| 218 | for _, c := range Commands() { |
| 219 | if c.HasName(name) { |
| 220 | return c |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | return nil |
| 225 | } |
| 226 | |
| 227 | // Main is the entrypoint function to run given commands. |
| 228 | func Main(ctx context.Context, args []string) error { |