go_kit
is a project that emulates a terminal environment by implementing some of the basic Linux command-line tools in Go. This project provides Go-based implementations for popular Linux commands, making it a lightweight yet powerful tool for CLI enthusiasts.
Below is an example of go_kit
in action:
Ensure you have Go installed (>= 1.20). Then, clone the repository and run:
# Clone the repository
git clone https://github.com/bikraj2/go_kit.git
cd go_kit
# Run the CLI
go run ./cmd
You can use the following commands in go_kit
. Each command supports the -help
flag for documentation:
<command> -help
Example:
ls -help
Command | Description |
---|---|
ls |
List directory contents |
clear |
Clears the terminal screen |
cd |
Change the current directory |
color |
Customize terminal colors |
mkdir |
Create new directories |
pwd |
Get the current direcotry |
-
echo
- Print arguments to output -
| (pipe)
- Pipe output from one command to another -
curl
- Fetch data from a URL -
grep
- Search for patterns in text
Contributions are welcome! To contribute:
- Fork the repo
- Create a branch (
git checkout -b feature-name
) - Commit changes (
git commit -m "Added new feature"
) - Push to your fork (
git push origin feature-name
) - Create a Pull Request
This project is licensed under the MIT License.
If you like this project, give it a ⭐ on GitHub!