Created
August 20, 2023 19:22
-
-
Save johnlindquist/c8556c9c8c7e72dc85896242f1150b14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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