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

Method envsec

internal/boxcli/secrets.go:20–31  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

18}
19
20func (f *secretsFlags) envsec(cmd *cobra.Command) (*envsec.Envsec, error) {
21 box, err := devbox.Open(&devopt.Opts{
22 Dir: f.config.path,
23 Environment: f.config.environment,
24 Stderr: cmd.ErrOrStderr(),
25 })
26 if err != nil {
27 return nil, errors.WithStack(err)
28 }
29
30 return box.Secrets(cmd.Context())
31}
32
33type secretsInitCmdFlags struct {
34 force bool

Callers 5

secretsSetCmdFunction · 0.80
secretsRemoveCmdFunction · 0.80
secretsListCmdFunction · 0.80
secretsDownloadCmdFunction · 0.80
secretsUploadCmdFunction · 0.80

Calls 2

OpenFunction · 0.92
SecretsMethod · 0.80

Tested by

no test coverage detected