await template(`
This file contains 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
import "@johnlindquist/kit" | |
import type { Choice } from "@johnlindquist/kit" | |
import gis from "g-i-s" | |
const query = await arg("Enter image search term") | |
const images = await new Promise<any[]>((resolve, reject) => { | |
gis(query, (error, results) => { | |
if (error) { | |
reject(error) |
This file contains 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
import "@johnlindquist/kit" | |
export const metadata: Metadata = { | |
name: "Selected bug repro", | |
} | |
await arg("", [ | |
{ name: "A", selected: false }, | |
{ name: "B", selected: true }, | |
{ name: "C", selected: false }, |
This file contains 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
import "@johnlindquist/kit" | |
import { Stagehand } from "@browserbasehq/stagehand" | |
metadata = { | |
name: "Stagehand Tests", | |
} | |
const key = await env("STAGEHAND_OPENAPI_API_KEY", { hint: "OpenAPI API Key" }) | |
const stagehand = new Stagehand({ |
This file contains 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
import "@johnlindquist/kit" | |
import { parseMetadata } from "@johnlindquist/kit" | |
metadata = { | |
name: "Migrate Snippets to Scriptlets", | |
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax", | |
author: "JosXa", | |
} | |
const snippetsDir = kenvPath("snippets") |
This file contains 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
import "@johnlindquist/kit" | |
import { parseMetadata } from "@johnlindquist/kit" | |
metadata = { | |
name: "Migrate Snippets to Scriptlets", | |
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax", | |
author: "JosXa", | |
} | |
const snippetsDir = kenvPath("snippets") |
This file contains 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
// noinspection JSDeprecatedSymbols | |
import "@johnlindquist/kit" | |
import { parseMetadata } from "@johnlindquist/kit" | |
metadata = { | |
name: "Migrate Snippets to Scriptlets", | |
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax", | |
author: "JosXa", | |
} |
This file contains 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
// noinspection JSDeprecatedSymbols | |
import "@johnlindquist/kit" | |
import { parseMetadata } from "@johnlindquist/kit" | |
metadata = { | |
name: "Migrate Snippets to Scriptlets", | |
description: "Reads your legacy snippets folder and migrates them to the new markdown-based scriptlets syntax", | |
author: "JosXa", | |
} |
This file contains 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
import "@johnlindquist/kit" | |
import { startSpinner } from "@josxa/kit-utils" | |
import notifier from "node-notifier" | |
import { getKenvs } from "../../.kit" | |
metadata = { | |
name: "Sync Kenvs", | |
description: "git add & commit & rebase & push safely", | |
schedule: "0 */12 * * *", // every 12 hours | |
} |
This file contains 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
import "@johnlindquist/kit" | |
import { startSpinner } from "@josxa/kit-utils" | |
import notifier from "node-notifier" | |
import { getKenvs } from "../../.kit" | |
export const metadata: Metadata = { | |
name: "Sync Kenvs", | |
description: "git add & commit & rebase & push safely", | |
schedule: "0 */12 * * *", // every 12 hours | |
} |
NewerOlder