#!/usr/bin/env bun import { execute, settings } from '@oclif/core' import { execSync } from 'child_process' try { // // Source asdf from your shell profile and capture environment variables // const asdfEnv = execSync('source ~/.asdf/asdf.sh && env', { shell: '/bin/bash' }) // .toString() // .split('\n') // .reduce((acc, line) => { // const [key, value] = line.split('='); // if (key && value) acc[key] = value; // return acc; // }, {}); // // Add the asdf environment to the current process // Object.assign(process.env, asdfEnv); // // Now, asdf is available in process.env, and you can use it // console.log(execSync('asdf list all nodejs').toString()); } catch (error) { console.error(`Failed to load asdf: ${error.message}`); } // process.env.DEBUG="" settings.performanceEnabled = true await execute({ dir: import.meta.url })