Skip to content

Commit

Permalink
fix: explicit dagger project usage
Browse files Browse the repository at this point in the history
Resolves: #2091
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
  • Loading branch information
TomChv committed Apr 13, 2022
1 parent e110ac0 commit bc87547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dagger/cmd/project/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`")
},
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/dagger/cmd/project/update.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package project

import (
"fmt"

"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.dagger.io/dagger/cmd/dagger/cmd/common"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit bc87547

Please sign in to comment.