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

Method register

internal/boxcli/env.go:18–25  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

16type envFlag devopt.EnvFlags
17
18func (f *envFlag) register(cmd *cobra.Command) {
19 cmd.PersistentFlags().StringToStringVarP(
20 &f.EnvMap, "env", "e", nil, "environment variables to set in the devbox environment",
21 )
22 cmd.PersistentFlags().StringVar(
23 &f.EnvFile, "env-file", "", "path to a file containing environment variables to set in the devbox environment",
24 )
25}
26
27func (f *envFlag) Env(path string) (map[string]string, error) {
28 envs := map[string]string{}

Callers 15

pushCmdFunction · 0.45
cacheCmdFunction · 0.45
pathCmdFunction · 0.45
updateCmdFunction · 0.45
pullCmdFunction · 0.45
shellEnvCmdFunction · 0.45
installCmdFunction · 0.45
infoCmdFunction · 0.45
shellCmdFunction · 0.45
generateCmdFunction · 0.45
dockerfileCmdFunction · 0.45
direnvCmdFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected