Skip to content

Instantly share code, notes, and snippets.

@boraseoksoon
Last active August 26, 2025 06:52
Show Gist options
  • Save boraseoksoon/fee583166645c8efb0ef6ec54873f0d8 to your computer and use it in GitHub Desktop.
Save boraseoksoon/fee583166645c8efb0ef6ec54873f0d8 to your computer and use it in GitHub Desktop.
google
// Module that does visible UI operations
export default async function main() {
console.log("🎯 Executing UI test module...");
// Open Google in browser using Deno
const command = new Deno.Command("open", {
args: ["https://www.google.com"]
});
await command.output();
// Also create a notification (macOS)
const notify = new Deno.Command("osascript", {
args: [
"-e",
'display notification "Module test2 executed!" with title "HLVM Module"'
]
});
await notify.output();
return "✅ Opened Google and showed notification!";
}
// Execute immediately when imported
await main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment