const path = require('path');
const os = require('os');

function configureToolPath(env = process.env) {
  const landoBinPath = path.join(os.homedir(), '.lando', 'bin');
  const ddevBinPath = path.join(os.homedir(), '.ddev', 'bin');
  const dockerBinPath = '/usr/local/bin';
  const homebrewBinPath = '/opt/homebrew/bin';
  env.PATH = `${landoBinPath}:${ddevBinPath}:${dockerBinPath}:${homebrewBinPath}:${env.PATH || ''}`;
}

module.exports = { configureToolPath };
