export function handlePathOpen(path: string, program: 'code'|'finder') {
  if (program === 'code') {
    fetch(
      `http://localhost:3100/plugin-server/cli/operation/opencode/${encodeURIComponent(path)}`,
        {
        method: 'POST'
      }
    )
  } else {
    fetch(
      `http://localhost:3100/plugin-server/cli/operation/openfinder/${encodeURIComponent(path)}`,
        {
        method: 'POST'
      }
    )
  }
};
