1. Translate - Translate text to another language
This example explains how to use gen_content
to customize the prompt.
echo "你好,世界" | ask -p translate english
2. Commit - Generate git commit message
This example explains how you can share the context of the current command in the plugin, which allows you to get more input, such as reading and writing files or executing other commands.
ask -p commit # No need to pass any arguments or pipe
3. Speak - Speak the text with TTS
This example mainly explains how to use after_ask
to handle the AI's response. In this example, we used the say
command to read out the AI's response.
ask -p speak "中国最高的楼是什么"