Merge pull request #2119 from TomChv/fix/explicit-dagger-project

fix: explicit dagger project usage
This commit is contained in:
Vasek - Tom C 2022-04-14 10:42:46 +02:00 committed by GitHub
commit eeb2ef3eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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`")
},
}

View File

@ -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
}