({ commands })
| 15 | } |
| 16 | |
| 17 | export const Help: React.FC<Help> = ({ commands }) => ( |
| 18 | <Box |
| 19 | flexDirection="column" |
| 20 | marginBottom={1} |
| 21 | borderColor={Colors.Gray} |
| 22 | borderStyle="round" |
| 23 | padding={1} |
| 24 | > |
| 25 | {/* Basics */} |
| 26 | <Text bold color={Colors.Foreground}> |
| 27 | Basics: |
| 28 | </Text> |
| 29 | <Text color={Colors.Foreground}> |
| 30 | <Text bold color={Colors.AccentPurple}> |
| 31 | Add context |
| 32 | </Text> |
| 33 | : Use{' '} |
| 34 | <Text bold color={Colors.AccentPurple}> |
| 35 | @ |
| 36 | </Text>{' '} |
| 37 | to specify files for context (e.g.,{' '} |
| 38 | <Text bold color={Colors.AccentPurple}> |
| 39 | @src/myFile.ts |
| 40 | </Text> |
| 41 | ) to target specific files or folders. |
| 42 | </Text> |
| 43 | <Text color={Colors.Foreground}> |
| 44 | <Text bold color={Colors.AccentPurple}> |
| 45 | Shell mode |
| 46 | </Text> |
| 47 | : Execute shell commands via{' '} |
| 48 | <Text bold color={Colors.AccentPurple}> |
| 49 | ! |
| 50 | </Text>{' '} |
| 51 | (e.g.,{' '} |
| 52 | <Text bold color={Colors.AccentPurple}> |
| 53 | !npm run start |
| 54 | </Text> |
| 55 | ) or use natural language (e.g.{' '} |
| 56 | <Text bold color={Colors.AccentPurple}> |
| 57 | start server |
| 58 | </Text> |
| 59 | ). |
| 60 | </Text> |
| 61 | |
| 62 | <Box height={1} /> |
| 63 | |
| 64 | {/* Commands */} |
| 65 | <Text bold color={Colors.Foreground}> |
| 66 | Commands: |
| 67 | </Text> |
| 68 | {commands |
| 69 | .filter((command) => command.description) |
| 70 | .map((command: SlashCommand) => ( |
| 71 | <Box key={command.name} flexDirection="column"> |
| 72 | <Text color={Colors.Foreground}> |
| 73 | <Text bold color={Colors.AccentPurple}> |
| 74 | {' '} |
nothing calls this directly
no outgoing calls
no test coverage detected