diff options
Diffstat (limited to 'packages/cli/src/ui/components/AboutBox.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/AboutBox.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/AboutBox.tsx b/packages/cli/src/ui/components/AboutBox.tsx index 9ffa1a90..472bf979 100644 --- a/packages/cli/src/ui/components/AboutBox.tsx +++ b/packages/cli/src/ui/components/AboutBox.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; +import { GIT_COMMIT_INFO } from '../../generated/git-commit.js'; interface AboutBoxProps { cliVersion: string; @@ -44,6 +45,18 @@ export const AboutBox: React.FC<AboutBoxProps> = ({ <Text>{cliVersion}</Text> </Box> </Box> + {GIT_COMMIT_INFO && !['N/A'].includes(GIT_COMMIT_INFO) && ( + <Box flexDirection="row"> + <Box width="35%"> + <Text bold color={Colors.LightBlue}> + Git Commit + </Text> + </Box> + <Box> + <Text>{GIT_COMMIT_INFO}</Text> + </Box> + </Box> + )} <Box flexDirection="row"> <Box width="35%"> <Text bold color={Colors.LightBlue}> |
