/ src / commands / help.tsx
help.tsx
 1  import { Command } from '../commands.js'
 2  import { Help } from '../components/Help.js'
 3  import * as React from 'react'
 4  
 5  const help = {
 6    type: 'local-jsx',
 7    name: 'help',
 8    description: 'Show help and available commands',
 9    isEnabled: true,
10    isHidden: false,
11    async call(onDone, { options: { commands } }) {
12      return <Help commands={commands} onClose={onDone} />
13    },
14    userFacingName() {
15      return 'help'
16    },
17  } satisfies Command
18  
19  export default help