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:
parent
90d3724d6a
commit
5759071bd7
@ -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
|
||||
},
|
||||
|
@ -31,4 +31,5 @@ setup() {
|
||||
|
||||
"$DAGGER" project info
|
||||
assert_output --partial "Current dagger project in"
|
||||
assert_output --partial "$TEMPDIR"
|
||||
}
|
||||
|
Reference in New Issue
Block a user