diff options
| author | Miguel Solorio <[email protected]> | 2025-05-23 10:34:15 -0700 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-05-23 16:14:37 -0700 |
| commit | 221370acc5147cb4e91b2b65bf933c56e0d3a85e (patch) | |
| tree | a7b08a51c8563084a948ed77636d17b2f1f9233e /packages/cli/src/ui/components/AboutBox.tsx | |
| parent | 4a6833ef4990801304f3c88f0dcae403f3ea4358 (diff) | |
Add `/about` command
Diffstat (limited to 'packages/cli/src/ui/components/AboutBox.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/AboutBox.tsx | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/AboutBox.tsx b/packages/cli/src/ui/components/AboutBox.tsx new file mode 100644 index 00000000..a1a3a562 --- /dev/null +++ b/packages/cli/src/ui/components/AboutBox.tsx @@ -0,0 +1,70 @@ +/** + * @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'; + +interface AboutBoxProps { + cliVersion: string; + osVersion: string; + sandboxEnv: string; + modelVersion: string; +} + +export const AboutBox: React.FC<AboutBoxProps> = ({ + cliVersion, + osVersion, + sandboxEnv, + modelVersion, +}) => ( + <Box + borderStyle="round" + borderColor={Colors.SubtleComment} + flexDirection="column" + padding={1} + marginY={1} + width="100%" + > + <Box marginBottom={1}> + <Text bold color={Colors.AccentPurple}> + About Gemini CLI + </Text> + </Box> + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}>CLI Version</Text> + </Box> + <Box> + <Text>{cliVersion}</Text> + </Box> + </Box> + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}>Model</Text> + </Box> + <Box> + <Text>{modelVersion}</Text> + </Box> + </Box> + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}>Sandbox</Text> + </Box> + <Box> + <Text>{sandboxEnv}</Text> + </Box> + </Box> + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}>OS</Text> + </Box> + <Box> + <Text>{osVersion}</Text> + </Box> + </Box> + </Box> +); |
