mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Added bang(!) commands as a shell passthrough
This commit is contained in:
parent
68a3020044
commit
5f5edb4c9b
6 changed files with 157 additions and 27 deletions
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box, Newline, Text } from 'ink';
|
||||
import { Box, Text } from 'ink';
|
||||
import { Colors } from '../colors.js';
|
||||
import { SlashCommand } from '../hooks/slashCommandProcessor.js';
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ export const Intro: React.FC<Intro> = ({ commands }) => (
|
|||
* Semantically search and explain code
|
||||
</Text>
|
||||
<Text color={Colors.Foreground}> * Execute bash commands</Text>
|
||||
<Newline />
|
||||
<Box height={1} />
|
||||
<Text bold color={Colors.Foreground}>
|
||||
Commands:
|
||||
</Text>
|
||||
|
|
@ -37,5 +37,19 @@ export const Intro: React.FC<Intro> = ({ commands }) => (
|
|||
{command.description && ' - ' + command.description}
|
||||
</Text>
|
||||
))}
|
||||
<Text color={Colors.SubtleComment}>
|
||||
<Text bold color={Colors.AccentPurple}>
|
||||
{' '}
|
||||
!{' '}
|
||||
</Text>
|
||||
shell command
|
||||
</Text>
|
||||
<Text color={Colors.SubtleComment}>
|
||||
<Text bold color={Colors.AccentPurple}>
|
||||
{' '}
|
||||
${' '}
|
||||
</Text>
|
||||
echo hello world
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue