All in one ChatGPT CLI For
  • AI Commit.
  • AI Command
  • AI Translate.
  • AI Weather.
  • AI gitmoji
  • CZ.
  • Notion.
  • Whisper.

🔥 多功能 ChatGPT 命令行工具,内置 AI Commit、AI Command、AI Translate,构建自己的 AI 命令行工具,就像 GitHub Actions 工作流一样

sudo npm i @johannlai/gptcli -g

gptcli commit

AI 自动生成 Commit Message

The commit plugin allows users to generate a Git commit message automatically by simply entering gptcli commit in the terminal. The plugin will use the content from the Git diff to create a suitable commit message, making it easier for users to commit changes without having to manually craft a commit message themselves. This plugin helps streamline the Git commit process and saves users time and effort.

$ git diffdiff --git a/src/cli.ts b/src/cli.ts
index 227b825..a1f76a4 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -9,7 +9,6 @@ import { join } from 'path';
import { PLUGINS_DIR } from './constants.js';
-// if node version < 16 , give a warning
                    $ 

gptcli command

$ gptcli command `js files in the folder`🤖️ ls *.js 
🤖️ Would you like to execute the following command? (y/n)
❯ ls *.js
next.config.js
postcss.config.js
prettier.config.js
tailwind.config.js
tsconfig.json

由 GPT 写命令

The command plugin allows users to describe their desired command in natural language, and then outputs the corresponding plugin to fulfill the user request. For example, if the user inputs `show all js files in the current folder`, the plugin will output the corresponding plugin to display all the .js files in the current folder. This plugin makes it easier for users to find and utilize the appropriate plugins for their needs.