mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
4f43fb9acf
commit
90c6ad0fdb
|
@ -16,16 +16,15 @@ import (
|
||||||
// TODO: test that -- works with flags as well.
|
// TODO: test that -- works with flags as well.
|
||||||
// TODO CONTINUE: Making the bundle exec function work.
|
// TODO CONTINUE: Making the bundle exec function work.
|
||||||
// TODO CONTINUE: Adding the scripts section to DABs.
|
// 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 {
|
func newExecCommand() *cobra.Command {
|
||||||
variadicArgs := []string{}
|
|
||||||
|
|
||||||
execCmd := &cobra.Command{
|
execCmd := &cobra.Command{
|
||||||
Use: "exec",
|
Use: "exec",
|
||||||
Short: "Execute a command using the same authentication context as the bundle",
|
Short: "Execute a command using the same authentication context as the bundle",
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
Long: `Examples:
|
Long: `Examples:
|
||||||
// TODO: Ensure that these multi work strings work with the exec command.
|
|
||||||
1. databricks bundle exec -- echo "Hello, world!"
|
1. databricks bundle exec -- echo "Hello, world!"
|
||||||
2. databricks bundle exec -- /bin/bash -c "echo 'Hello, world!'"
|
2. databricks bundle exec -- /bin/bash -c "echo 'Hello, world!'"
|
||||||
3. databricks bundle exec -- uv run pytest"`,
|
3. databricks bundle exec -- uv run pytest"`,
|
||||||
|
|
Loading…
Reference in New Issue