Skip to content

Latest commit

ย 

History

History
57 lines (41 loc) ยท 2.04 KB

File metadata and controls

57 lines (41 loc) ยท 2.04 KB

๐Ÿš Go Shell Implementation

Go Version License CodeCrafters Progress

A POSIX-compliant shell implementation in Go, featuring built-in commands and external program execution capabilities. This project is part of the CodeCrafters "Build Your Own Shell" challenge.

๐Ÿ“š Table of Contents

โœจ Features

  • Interactive command-line interface
  • Built-in command support
  • External program execution
  • Path resolution
  • Home directory expansion
  • Error handling and status reporting

๐Ÿš€ Installation

Prerequisites

  • Go 1.22 or higher
  • Git

๐Ÿ“‹ Built-in Commands

Command Description Example
exit [code] Exit the shell with status code exit 0
echo [text] Display text to stdout echo Hello
type [command] Show command type type echo
pwd Print working directory pwd
cd [directory] Change directory cd ~/Documents

๐Ÿ”ฎ Future Prospects

  • Command history and search
  • Tab completion with smart suggestions
  • Pipeline support (|, >, >>)
  • Background process handling (&)
  • Signal handling (Ctrl+C, Ctrl+Z)

๐Ÿ™ Big Thanks To