()
| 40 | var countriesTemplate string |
| 41 | |
| 42 | func usage() { |
| 43 | _, _ = fmt.Println("Usage: typegen <type> [template]") |
| 44 | _, _ = fmt.Println("Types:") |
| 45 | _, _ = fmt.Println(" rbac <object|codersdk|typescript> - Generate RBAC related files") |
| 46 | _, _ = fmt.Println(" countries - Generate countries TypeScript") |
| 47 | } |
| 48 | |
| 49 | // main will generate a file based on the type and template specified. |
| 50 | // This is to provide an "AllResources" function that is always |