Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created August 20, 2023 19:22
Show Gist options
  • Save johnlindquist/c8556c9c8c7e72dc85896242f1150b14 to your computer and use it in GitHub Desktop.
Save johnlindquist/c8556c9c8c7e72dc85896242f1150b14 to your computer and use it in GitHub Desktop.
// Name: List Kit Examples Scripts
// Shortcut: opt 7
// Cache: true
import "@johnlindquist/kit"
import { parseScript } from "@johnlindquist/kit/core/utils"
import { globby } from "globby"
let kenv = "kit-examples"
let scriptPaths = await globby(kenvPath("kenvs", kenv, "scripts", "*"))
let scripts = await Promise.all(scriptPaths.map(p => parseScript(p)))
let script = await arg("Run Script", scripts)
await run(script.filePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment