| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "log" |
| 5 | "os" |
| 6 | |
| 7 | "github.com/urfave/cli/v2" |
| 8 | ) |
| 9 | |
| 10 | func main() { |
| 11 | app := &cli.App{ |
| 12 | Name: "radlicalize", |
| 13 | Usage: "A CLI tool used to clone either remote or local git repos to Radial.xyz", |
| 14 | Commands: []*cli.Command{ |
| 15 | { |
| 16 | Name: "local", |
| 17 | Aliases: []string{"l"}, |
| 18 | Usage: "Use to clone any local repos to Racial", |
| 19 | Action: func(ctx *cli.Context) error { |
| 20 | return LocalClone() |
| 21 | }, |
| 22 | }, |
| 23 | { |
| 24 | Name: "remote", |
| 25 | Aliases: []string{"r"}, |
| 26 | Usage: "Use to clone any remote public repos on Github to Racial", |
| 27 | Action: func(ctx *cli.Context) error { |
| 28 | return RemoteClone() |
| 29 | }, |
| 30 | }, |
| 31 | }, |
| 32 | } |
| 33 | |
| 34 | if err := app.Run(os.Args); err != nil { |
| 35 | log.Fatal(err) |
| 36 | } |
| 37 | } |