aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/myshell/main.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
new file mode 100644
index 0000000..6c65d9c
--- /dev/null
+++ b/cmd/myshell/main.go
@@ -0,0 +1,18 @@
+package main
+
+import (
+ "bufio"
+ "fmt"
+ "os"
+)
+
+func main() {
+ // You can use print statements as follows for debugging, they'll be visible when running tests.
+ fmt.Println("Logs from your program will appear here!")
+
+ // Uncomment this block to pass the first stage
+ // fmt.Fprint(os.Stdout, "$ ")
+
+ // Wait for user input
+ bufio.NewReader(os.Stdin).ReadString('\n')
+}