All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.core.utils.MacOSUtilities Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
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