mirror of https://github.com/databricks/cli.git
fix windows
This commit is contained in:
parent
09c05db3b1
commit
acff901127
|
@ -3,7 +3,7 @@
|
||||||
hello, world
|
hello, world
|
||||||
|
|
||||||
>>> [CLI] bundle exec -- --help
|
>>> [CLI] bundle exec -- --help
|
||||||
Error: starting "--help" failed: exec: "--help": executable file not found in $PATH
|
Error: starting "--help" failed: exec: "--help": executable file not found in PATH
|
||||||
|
|
||||||
Exit code: 1
|
Exit code: 1
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
[[Repls]]
|
||||||
|
Old = "\\$PATH"
|
||||||
|
New = "PATH"
|
||||||
|
|
||||||
[[Repls]]
|
[[Repls]]
|
||||||
Old = "%PATH%"
|
Old = "%PATH%"
|
||||||
New = "$PATH"
|
New = "PATH"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
>>> [CLI] bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
|
>>> [CLI] bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
|
||||||
Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in $PATH
|
Error: starting "doesnotexist arg1 arg2 --flag1 --flag2" failed: exec: "doesnotexist": executable file not found in PATH
|
||||||
|
|
||||||
Exit code: 1
|
Exit code: 1
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
|
errcode trace $CLI bundle exec -- doesnotexist arg1 arg2 --flag1 --flag2
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
[[Repls]]
|
||||||
|
Old = "\\$PATH"
|
||||||
|
New = "PATH"
|
||||||
|
|
||||||
[[Repls]]
|
[[Repls]]
|
||||||
Old = "%PATH%"
|
Old = "%PATH%"
|
||||||
New = "$PATH"
|
New = "PATH"
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[[Repls]]
|
||||||
|
Old = '\\'
|
||||||
|
New = '/'
|
|
@ -55,7 +55,7 @@ Example usage:
|
||||||
//
|
//
|
||||||
// This is only useful for when the Databricks CLI is the child command,
|
// This is only useful for when the Databricks CLI is the child command,
|
||||||
// since if we do not explicitly pass the profile, the CLI will use the
|
// since if we do not explicitly pass the profile, the CLI will use the
|
||||||
// profile configured in the bundle YAML configuration (if any).
|
// auth configured in the bundle YAML configuration (if any).
|
||||||
if b.Config.Workspace.Profile != "" {
|
if b.Config.Workspace.Profile != "" {
|
||||||
env = append(env, "DATABRICKS_CONFIG_PROFILE="+b.Config.Workspace.Profile)
|
env = append(env, "DATABRICKS_CONFIG_PROFILE="+b.Config.Workspace.Profile)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue