cmdg

command module
v0.0.0-...-b0609f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

README

cmdg

A CLI tool to get terminal commands from natural language descriptions.

Description

cmdg (Command Generator) is a command-line interface tool that converts natural language descriptions into terminal commands, making it easier to find and use terminal commands without memorizing them. Simply describe what you want to do in plain language, and cmdg will suggest the appropriate command.

Installation

go install github.com/Beriholic/cmdg@latest

Make sure fastfetch is installed before installation

Config

cmdg config
cmdg models

Usage

cmdg -c "your command description"

Examples

Here are examples of different complexity levels:

Simple Tasks

Basic file and directory operations:

cmdg -c "show all files in current directory"

cmdg -c "create a new folder named projects"

cmdg -c "show disk space usage"
Intermediate Tasks

Operations requiring specific parameters or options:

cmdg -c "find files larger than 100MB in ~/Download folder"

cmdg -c "show top 10 processes using the most memory"

cmdg -c "show memory usage"
Advanced Tasks

Complex operations combining multiple commands:

cmdg -c "find all error messages in /logs from last 24 hours and save to errors.txt"

cmdg -c "create a compressed backup of ./project folder excluding node_modules"

cmdg -c "find and remove all temporary files older than 30 days"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL