Ask Command (askc) is a CLI program that lets you, as a beginner/student in the shell/bash world, ask an AI how to perform various tasks. It explains commands, how to use them and how they work.
I will build this with c++
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I attempted to add arrow navigation to the output, but it didn't work as expected, so I'll need to improve this later.
But it works for now, and you can press Enter to save the command to the clipboard so you can easily use it later on.
I created the entire data flow for the API response so that the AI can only output a structured response. The structured output then gets saved into a class, and the class has a function that beautifully writes all the data to the terminal
I used the cpr library to make HTTP requests to the Gemini API. Now you can ask a question and get the answer, all within the terminal, without needing to open any website.
I made the whole settings/config module look and feel better. I added some styles and some validation checks.
I added the whole config/settings menu. You can now set your AI provider of choice and add your API key. All the configuration will be saved in a config.json file on your local PC.
For now, I want to focus on implementing just Gemini, and then after that, I will maybe integrate also other AI providers.
I created a clear structure and finished setting up the project.
I use CMake for all of this.
I set up the whole environment for C++, in Ubuntu and LazyVim (yes, I want to learn nvim) all this in wsl on a Windows PC