fix: explicit dagger project usage
Resolves: #2091 Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
parent
e110ac05a2
commit
bc87547390
@ -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`")
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user