From bc875473906fad73f57a73c8fe31a269067d734e Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Mon, 11 Apr 2022 11:57:15 +0200 Subject: [PATCH] fix: explicit dagger project usage Resolves: #2091 Signed-off-by: Vasek - Tom C --- cmd/dagger/cmd/project/init.go | 1 + cmd/dagger/cmd/project/update.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cmd/dagger/cmd/project/init.go b/cmd/dagger/cmd/project/init.go index 86ff36b5..40b2feda 100644 --- a/cmd/dagger/cmd/project/init.go +++ b/cmd/dagger/cmd/project/init.go @@ -41,6 +41,7 @@ var initCmd = &cobra.Command{ if err != nil { lg.Fatal().Err(err).Msg("failed to initialize project") } + fmt.Println("Project initialized! To install dagger packages, run `dagger project update`") }, } diff --git a/cmd/dagger/cmd/project/update.go b/cmd/dagger/cmd/project/update.go index a8cf39e3..d99dc6b9 100644 --- a/cmd/dagger/cmd/project/update.go +++ b/cmd/dagger/cmd/project/update.go @@ -1,6 +1,8 @@ package project import ( + "fmt" + "github.com/spf13/cobra" "github.com/spf13/viper" "go.dagger.io/dagger/cmd/dagger/cmd/common" @@ -35,6 +37,7 @@ var updateCmd = &cobra.Command{ if len(args) == 0 { lg.Debug().Msg("No package specified, updating all packages") pkg.Vendor(ctx, cueModPath) + fmt.Println("Project updated") return }