From bb52149a06012ddb5e5535d60decf40aa11ac344 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Mon, 5 May 2025 20:48:34 +0000 Subject: Move Intro to Help and only display after help command. --- packages/cli/src/ui/components/Help.tsx | 55 ++++++++++++++++++++++++++++++++ packages/cli/src/ui/components/Intro.tsx | 55 -------------------------------- 2 files changed, 55 insertions(+), 55 deletions(-) create mode 100644 packages/cli/src/ui/components/Help.tsx delete mode 100644 packages/cli/src/ui/components/Intro.tsx (limited to 'packages/cli/src/ui/components') diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx new file mode 100644 index 00000000..3ca182be --- /dev/null +++ b/packages/cli/src/ui/components/Help.tsx @@ -0,0 +1,55 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import React from 'react'; +import { Box, Text } from 'ink'; +import { Colors } from '../colors.js'; +import { SlashCommand } from '../hooks/slashCommandProcessor.js'; + +interface Help { + commands: SlashCommand[]; +} + +export const Help: React.FC = ({ commands }) => ( + + + Abilities: + + * Use tools to read and write files + + {' '} + * Semantically search and explain code + + * Execute bash commands + + + Commands: + + {commands.map((command: SlashCommand) => ( + + + {' '} + /{command.name} + + {command.description && ' - ' + command.description} + + ))} + + + {' '} + !{' '} + + shell command + + + + {' '} + ${' '} + + echo hello world + + +); diff --git a/packages/cli/src/ui/components/Intro.tsx b/packages/cli/src/ui/components/Intro.tsx deleted file mode 100644 index 2e557917..00000000 --- a/packages/cli/src/ui/components/Intro.tsx +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -import React from 'react'; -import { Box, Text } from 'ink'; -import { Colors } from '../colors.js'; -import { SlashCommand } from '../hooks/slashCommandProcessor.js'; - -interface Intro { - commands: SlashCommand[]; -} - -export const Intro: React.FC = ({ commands }) => ( - - - Abilities: - - * Use tools to read and write files - - {' '} - * Semantically search and explain code - - * Execute bash commands - - - Commands: - - {commands.map((command: SlashCommand) => ( - - - {' '} - /{command.name} - - {command.description && ' - ' + command.description} - - ))} - - - {' '} - !{' '} - - shell command - - - - {' '} - ${' '} - - echo hello world - - -); -- cgit v1.2.3