|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+[](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)
|
|
|
2
|
+
|
|
|
3
|
+This is a starting point for Go solutions to the
|
|
|
4
|
+["Build Your Own Shell" Challenge](https://app.codecrafters.io/courses/shell/overview).
|
|
|
5
|
+
|
|
|
6
|
+In this challenge, you'll build your own POSIX compliant shell that's capable of
|
|
|
7
|
+interpreting shell commands, running external programs and builtin commands like
|
|
|
8
|
+cd, pwd, echo and more. Along the way, you'll learn about shell command parsing,
|
|
|
9
|
+REPLs, builtin commands, and more.
|
|
|
10
|
+
|
|
|
11
|
+**Note**: If you're viewing this repo on GitHub, head over to
|
|
|
12
|
+[codecrafters.io](https://codecrafters.io) to try the challenge.
|
|
|
13
|
+
|
|
|
14
|
+# Passing the first stage
|
|
|
15
|
+
|
|
|
16
|
+The entry point for your `shell` implementation is in `app/main.go`. Study and
|
|
|
17
|
+uncomment the relevant code, and push your changes to pass the first stage:
|
|
|
18
|
+
|
|
|
19
|
+```sh
|
|
|
20
|
+git commit -am "pass 1st stage" # any msg
|
|
|
21
|
+git push origin master
|
|
|
22
|
+```
|
|
|
23
|
+
|
|
|
24
|
+Time to move on to the next stage!
|
|
|
25
|
+
|
|
|
26
|
+# Stage 2 & beyond
|
|
|
27
|
+
|
|
|
28
|
+Note: This section is for stages 2 and beyond.
|
|
|
29
|
+
|
|
|
30
|
+1. Ensure you have `go (1.25)` installed locally
|
|
|
31
|
+1. Run `./your_program.sh` to run your program, which is implemented in
|
|
|
32
|
+ `app/main.go`.
|
|
|
33
|
+1. Commit your changes and run `git push origin master` to submit your solution
|
|
|
34
|
+ to CodeCrafters. Test output will be streamed to your terminal.
|