Merge pull request #2119 from TomChv/fix/explicit-dagger-project
fix: explicit dagger project usage
This commit is contained in:
commit
eeb2ef3eab
@ -41,6 +41,7 @@ var initCmd = &cobra.Command{
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
lg.Fatal().Err(err).Msg("failed to initialize project")
|
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
|
package project
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.dagger.io/dagger/cmd/dagger/cmd/common"
|
"go.dagger.io/dagger/cmd/dagger/cmd/common"
|
||||||
@ -35,6 +37,7 @@ var updateCmd = &cobra.Command{
|
|||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
lg.Debug().Msg("No package specified, updating all packages")
|
lg.Debug().Msg("No package specified, updating all packages")
|
||||||
pkg.Vendor(ctx, cueModPath)
|
pkg.Vendor(ctx, cueModPath)
|
||||||
|
fmt.Println("Project updated")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user