Enterprise-CMCS/macpro-mako

View on GitHub
bin/cli/src/lib/open-url.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { exec } from "child_process";

export function openUrl(url) {
  const start = "open";
  exec(`${start} ${url}`, (error) => {
    if (error) {
      console.error(`Error opening URL: ${error}`);
    }
  });
}