Project2

command
v0.0.0-...-ad66821 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

README

ShweetShell ShweetShell is a simple shell written in Go that supports basic shell commands and built-ins.

Basic shell functionalities such as executing commands and built-ins. Support for built-in commands including cd, env, exit, ls, mkdir, and more. Customizable with the ability to add new shell commands and built-ins. Installation To install ShweetShell, follow these steps:

Clone the repository:

git clone https://github.com/Dannyboy/ShweetShell.git Accces the Shweet Shell directory: 'Project 2' Build the project command: 'go build' Usage After building the project, you can run the shell by executing the command: 'go run main.go'

Supported Commands The following built-in commands are currently supported:

cd: Change directory. env: List environment variables. exit: Exit the shell. ls: List files and directories. [optional argument 'f' or 'd' for only showing files or directories] mkdir: Create a new directory. [argument: name of directory] ex:'mkdir test' pwd: prints current working directory clear: clars the console rm: takes file or deirctory name as parameter help: Display list of available commands. Testing To run the tests for this project, execute the following command: 'go test -v'

This will run all the test cases defined in the project.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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