askC

askC

8 devlogs
16h 20m
Created by Samuel Konrad

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++

Timeline

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.

Update attachment

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

Update attachment

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.

Update attachment

I made the whole settings/config module look and feel better. I added some styles and some validation checks.

Update attachment

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.

Update attachment

I added config.json file so you can add your AI provider and API key

Update attachment

I created a clear structure and finished setting up the project.
I use CMake for all of this.

Update attachment

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

Update attachment