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

Method refreshCmd

internal/devbox/refresh.go:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (d *Devbox) refreshCmd() string {
45 devboxCmd := fmt.Sprintf("shellenv --preserve-path-stack -c %q", d.projectDir)
46 if d.isGlobal() {
47 devboxCmd = "global shellenv --preserve-path-stack -r"
48 }
49 if isFishShell() {
50 return fmt.Sprintf(`eval (devbox %s | string collect)`, devboxCmd)
51 }
52 return fmt.Sprintf(`eval "$(devbox %s)" && hash -r`, devboxCmd)
53}
54
55func (d *Devbox) refreshAlias() string {
56 if isFishShell() {

Callers 4

isRefreshAliasSetMethod · 0.95
RefreshAliasOrCommandMethod · 0.95
refreshAliasMethod · 0.95
writeDevboxShellrcMethod · 0.80

Calls 2

isGlobalMethod · 0.95
isFishShellFunction · 0.85

Tested by

no test coverage detected