diff --git a/cmd/dagger/cmd/init.go b/cmd/dagger/cmd/init.go index 36e3bde4..aa89d9fe 100644 --- a/cmd/dagger/cmd/init.go +++ b/cmd/dagger/cmd/init.go @@ -36,10 +36,12 @@ var initCmd = &cobra.Command{ dir = cwd } - _, err := state.Init(ctx, dir) + ws, err := state.Init(ctx, dir) if err != nil { lg.Fatal().Err(err).Msg("failed to initialize workspace") } + + lg.Info().Str("path", ws.DaggerDir()).Msg("initialized new empty workspace") }, } diff --git a/state/workspace.go b/state/workspace.go index 6b926390..65253014 100644 --- a/state/workspace.go +++ b/state/workspace.go @@ -268,3 +268,7 @@ func (w *Workspace) Create(ctx context.Context, name string) (*State, error) { return st, nil } + +func (w *Workspace) DaggerDir() string { + return path.Join(w.Path, daggerDir) +}