From 90c6ad0fdb8f84d96ca3853d0156b8f32ff6d541 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Mon, 3 Mar 2025 10:52:31 +0100 Subject: [PATCH] - --- cmd/bundle/exec.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/bundle/exec.go b/cmd/bundle/exec.go index efc8164f5..11b38ef18 100644 --- a/cmd/bundle/exec.go +++ b/cmd/bundle/exec.go @@ -16,16 +16,15 @@ import ( // TODO: test that -- works with flags as well. // TODO CONTINUE: Making the bundle exec function work. // TODO CONTINUE: Adding the scripts section to DABs. +// TODO: Ensure that these multi word strings work with the exec command. Example: echo "Hello, world!" +// Or if it does not work, be sure why. Probably because string parsing is a part of the bash shell. func newExecCommand() *cobra.Command { - variadicArgs := []string{} - execCmd := &cobra.Command{ Use: "exec", Short: "Execute a command using the same authentication context as the bundle", Args: cobra.MinimumNArgs(1), Long: `Examples: - // TODO: Ensure that these multi work strings work with the exec command. 1. databricks bundle exec -- echo "Hello, world!" 2. databricks bundle exec -- /bin/bash -c "echo 'Hello, world!'" 3. databricks bundle exec -- uv run pytest"`,