()
| 14 | } |
| 15 | |
| 16 | func pathCmd() *cobra.Command { |
| 17 | flags := pathCmdFlags{} |
| 18 | cmd := &cobra.Command{ |
| 19 | Use: "path", |
| 20 | Short: "Show path to [global] devbox config", |
| 21 | PreRunE: ensureNixInstalled, |
| 22 | Args: cobra.ExactArgs(0), |
| 23 | RunE: func(cmd *cobra.Command, args []string) error { |
| 24 | fmt.Println(flags.config.path) |
| 25 | return nil |
| 26 | }, |
| 27 | } |
| 28 | |
| 29 | flags.config.register(cmd) |
| 30 | |
| 31 | return cmd |
| 32 | } |