test: Update project info command to pass lint and test to make sure TEMPDIR is there

Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
This commit is contained in:
Kenneth Lear 2022-04-06 21:26:38 -04:00
parent 90d3724d6a
commit 5759071bd7
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package project
import (
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"go.dagger.io/dagger/cmd/dagger/logger"
@ -27,7 +28,7 @@ var infoCmd = &cobra.Command{
lg.Fatal().Msg("dagger project not found. Run `dagger project init`")
}
fmt.Println(fmt.Sprintf("Current dagger project in: %s", cueModPath))
fmt.Printf("\nCurrent dagger project in: %s", cueModPath)
// TODO: find available plans and if they load successfully
},

View File

@ -31,4 +31,5 @@ setup() {
"$DAGGER" project info
assert_output --partial "Current dagger project in"
assert_output --partial "$TEMPDIR"
}