()
| 45 | } |
| 46 | |
| 47 | func generateCmd() *cobra.Command { |
| 48 | flags := &generateCmdFlags{} |
| 49 | |
| 50 | command := &cobra.Command{ |
| 51 | Use: "generate", |
| 52 | Aliases: []string{"gen"}, |
| 53 | Short: "Generate supporting files for your project", |
| 54 | Args: cobra.MaximumNArgs(0), |
| 55 | PersistentPreRunE: ensureNixInstalled, |
| 56 | } |
| 57 | command.AddCommand(genAliasCmd()) |
| 58 | command.AddCommand(devcontainerCmd()) |
| 59 | command.AddCommand(dockerfileCmd()) |
| 60 | command.AddCommand(debugCmd()) |
| 61 | command.AddCommand(direnvCmd()) |
| 62 | command.AddCommand(genReadmeCmd()) |
| 63 | flags.config.register(command) |
| 64 | |
| 65 | return command |
| 66 | } |
| 67 | |
| 68 | func debugCmd() *cobra.Command { |
| 69 | flags := &generateCmdFlags{} |
no test coverage detected