diff --git a/cmd/bundle/init.go b/cmd/bundle/init.go index db8250d0..47d78f7d 100644 --- a/cmd/bundle/init.go +++ b/cmd/bundle/init.go @@ -191,12 +191,19 @@ See https://docs.databricks.com/en/dev-tools/bundles/templates.html for more inf if err != nil { return err } + + // start the spinner + promptSpinner := cmdio.Spinner(ctx) + promptSpinner <- "Downloading the template\n" + // TODO: Add automated test that the downloaded git repo is cleaned up. // Clone the repository in the temporary directory err = git.Clone(ctx, templatePath, ref, repoDir) + close(promptSpinner) if err != nil { return err } + // Clean up downloaded repository once the template is materialized. defer os.RemoveAll(repoDir) return template.Materialize(ctx, configFile, filepath.Join(repoDir, templateDir), outputDir)