com.databricks.sdk.core.utils.MacOSUtilities Maven / Gradle / Ivy
package com.databricks.sdk.core.utils;
import java.util.Arrays;
import java.util.List;
/** MacOS specific utilities. */
public class MacOSUtilities implements OSUtilities {
private final Environment env;
public MacOSUtilities(Environment env) {
this.env = env;
}
@Override
public List getCliExecutableCommand(List cmd) {
String cmdToString = String.join(" ", cmd);
return Arrays.asList("/bin/bash", "-c", cmdToString);
}
@Override
public String getDatabricksCliPath() {
return OSUtils.findExecutable(env.getPath(), "databricks");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy