Add debug log line for when bundle init is run from non-TTY interface (#1117)

This commit is contained in:
shreyas-goenka 2024-01-11 21:11:13 +05:30 committed by GitHub
parent 51c64ef82a
commit 7dcdadde79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/databricks/cli/libs/cmdio"
"github.com/databricks/cli/libs/jsonschema"
"github.com/databricks/cli/libs/log"
"golang.org/x/exp/maps"
)
@ -247,6 +248,7 @@ func (c *config) promptOrAssignDefaultValues(r *renderer) error {
if cmdio.IsOutTTY(c.ctx) && cmdio.IsInTTY(c.ctx) && !cmdio.IsGitBash(c.ctx) {
return c.promptForValues(r)
}
log.Debugf(c.ctx, "Terminal is not TTY. Assigning default values to template input parameters")
return c.assignDefaultValues(r)
}