| 1101 | } |
| 1102 | |
| 1103 | function intro(state: State): void { |
| 1104 | note( |
| 1105 | state.footer, |
| 1106 | [ |
| 1107 | "Demo slash commands enabled for interactive mode.", |
| 1108 | `- /permission [kind] (${PERMISSIONS.join(", ")})`, |
| 1109 | `- /question [kind] (${QUESTIONS.join(", ")})`, |
| 1110 | `- /fmt <kind> (${KINDS.join(", ")})`, |
| 1111 | "Examples:", |
| 1112 | "- /permission bash", |
| 1113 | "- /question custom", |
| 1114 | "- /fmt markdown", |
| 1115 | "- /fmt table", |
| 1116 | "- /fmt text your custom text", |
| 1117 | ].join("\n"), |
| 1118 | ) |
| 1119 | } |
| 1120 | |
| 1121 | export function createRunDemo(input: Input) { |
| 1122 | const state: State = { |