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

Function IsConfigured

internal/devbox/providers/nixcache/setup.go:26–34  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

24const setupKey = "nixcache-setup"
25
26func IsConfigured(ctx context.Context) bool {
27 u, err := user.Current()
28 if err != nil {
29 return false
30 }
31 task := &setupTask{u.Username}
32 status := setup.Status(ctx, setupKey, task)
33 return status == setup.TaskDone
34}
35
36func Configure(ctx context.Context) error {
37 u, err := user.Current()

Callers 1

cacheEnableCmdFunction · 0.92

Calls 1

StatusFunction · 0.92

Tested by

no test coverage detected