(template: string)
| 34 | export type Info = Omit<Schema.Schema.Type<typeof Info>, "template"> & { template: Promise<string> | string } |
| 35 | |
| 36 | export function hints(template: string) { |
| 37 | const result: string[] = [] |
| 38 | const numbered = template.match(/\$\d+/g) |
| 39 | if (numbered) { |
| 40 | for (const match of [...new Set(numbered)].sort()) result.push(match) |
| 41 | } |
| 42 | if (template.includes("$ARGUMENTS")) result.push("$ARGUMENTS") |
| 43 | return result |
| 44 | } |
| 45 | |
| 46 | export const Default = { |
| 47 | INIT: "init", |