Download projects/gemini-cli/packages/cli/src/ui/components/messages/UserShellMessage.tsx from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/components/messages/UserShellMessage.tsx
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai@2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/components/messages/UserShellMessage.tsx
-
curl -L -o UserShellMessage.tsx https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/2147bc06c2ccf123b96f98eace2e6bf6486e7f0e/projects/gemini-cli/packages/cli/src/ui/components/messages/UserShellMessage.tsx
608 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import type React from 'react'; | |
| import { Box, Text } from 'ink'; | |
| import { Colors } from '../../colors.js'; | |
| interface UserShellMessageProps { | |
| text: string; | |
| } | |
| export const UserShellMessage: React.FC<UserShellMessageProps> = ({ text }) => { | |
| // Remove leading '!' if present, as App.tsx adds it for the processor. | |
| const commandToDisplay = text.startsWith('!') ? text.substring(1) : text; | |
| return ( | |
| <Box> | |
| <Text color={Colors.AccentCyan}>$ </Text> | |
| <Text>{commandToDisplay}</Text> | |
| </Box> | |
| ); | |
| }; | |