GoCommand is a simple command-line shell written in Go. It allows users to execute system commands interactively. This shell reads user input, executes commands, and displays output and errors.
- Command Execution: Execute system commands and view their output directly from the shell.
- Interactive Prompt: A simple
*
prompt for entering commands. - Cross-Platform: Should work on both Unix-like systems and Windows.
To build and run GoCommand, follow these steps:
-
Clone the Repository:
git clone https://gitlab.com/saniasiddiqui231/gocommand.git
-
Run:
go run main.go
Once running, the shell will display a *
prompt. You can enter system commands at the prompt, and the output will be displayed in the terminal. For example:
* ls