MCPcopy Index your code
hub / github.com/jetify-com/devbox / secretsCmd

Function secretsCmd

internal/boxcli/secrets.go:50–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func 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
70func secretsInitCmd(secretsFlags *secretsFlags) *cobra.Command {
71 flags := secretsInitCmdFlags{}

Callers 1

RootCmdFunction · 0.85

Calls 7

secretsDownloadCmdFunction · 0.85
secretsInitCmdFunction · 0.85
secretsListCmdFunction · 0.85
secretsRemoveCmdFunction · 0.85
secretsSetCmdFunction · 0.85
secretsUploadCmdFunction · 0.85
registerPersistentMethod · 0.45

Tested by

no test coverage detected