This is my solution in GO for the CodeCrafter's "Build Your Own Shell" Challenge.
This challenge consist in building a simple repl shell in any desired language featuring the commands
exit code
echo something
type any_command
cd {~, ./some_relative_path, /some/absolute/path}
executable_from_pathNote: If you're viewing this repo on GitHub, head over to codecrafters.io to try the challenge.
To run the shell you must have go version 1.22.3 installed on your machine. If by any chance you use asdf the .tool-versions is already configured
Once installed, simply run the following command:
./your_shell.shIt will start the custom shell and you can start typing commands.
Note: any command from the user $PATH is valid, but it will attempt to run builtin first