()
| 48 | } |
| 49 | |
| 50 | func secretsCmd() *cobra.Command { |
| 51 | flags := &secretsFlags{} |
| 52 | cmd := &cobra.Command{ |
| 53 | Use: "secrets", |
| 54 | Aliases: []string{"envsec"}, |
| 55 | Short: "Interact with devbox secrets in jetify cloud.", |
| 56 | PersistentPreRunE: ensureNixInstalled, |
| 57 | } |
| 58 | cmd.AddCommand(secretsDownloadCmd(flags)) |
| 59 | cmd.AddCommand(secretsInitCmd(flags)) |
| 60 | cmd.AddCommand(secretsListCmd(flags)) |
| 61 | cmd.AddCommand(secretsRemoveCmd(flags)) |
| 62 | cmd.AddCommand(secretsSetCmd(flags)) |
| 63 | cmd.AddCommand(secretsUploadCmd(flags)) |
| 64 | |
| 65 | flags.config.registerPersistent(cmd) |
| 66 | |
| 67 | return cmd |
| 68 | } |
| 69 | |
| 70 | func secretsInitCmd(secretsFlags *secretsFlags) *cobra.Command { |
| 71 | flags := secretsInitCmdFlags{} |
no test coverage detected