Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/tenv/subcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func newDetectCmd(versionManager versionmanager.VersionManager, params subCmdPar
SilenceUsage: true,
RunE: func(_ *cobra.Command, _ []string) error {
conf.InitDisplayer(false)
conf.InitValidation(skipSum, skipSign)
conf.InitInstall(forceInstall, forceNoInstall)

detectedVersion, err := versionManager.Detect(context.Background(), false, noFallback)
Expand Down Expand Up @@ -165,6 +166,7 @@ If a parameter is passed, available options:
},
RunE: func(_ *cobra.Command, args []string) error {
conf.InitDisplayer(false)
conf.InitValidation(skipSum, skipSign)

ctx := context.Background()
if len(args) == 0 {
Expand Down Expand Up @@ -431,6 +433,7 @@ Available parameter options:
},
RunE: func(_ *cobra.Command, args []string) error {
conf.InitDisplayer(false)
conf.InitValidation(skipSum, skipSign)
conf.InitInstall(forceInstall, forceNoInstall)

return versionManager.Use(context.Background(), args[0], workingDir)
Expand Down