{"id":37151054,"url":"https://github.com/dn46/go-shell","last_synced_at":"2026-01-14T17:50:54.911Z","repository":{"id":242445744,"uuid":"805742109","full_name":"dn46/go-shell","owner":"dn46","description":"Go-Shell is a simple shell implemented in Go. It supports basic commands, navigation with `cd`, and exiting with `exit`.","archived":false,"fork":false,"pushed_at":"2024-05-25T11:37:22.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-03T04:28:55.810Z","etag":null,"topics":["go","shell"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dn46.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-25T10:33:44.000Z","updated_at":"2024-06-03T04:29:02.559Z","dependencies_parsed_at":"2024-06-10T21:47:42.530Z","dependency_job_id":null,"html_url":"https://github.com/dn46/go-shell","commit_stats":null,"previous_names":["dn46/go-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dn46/go-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dn46%2Fgo-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dn46%2Fgo-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dn46%2Fgo-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dn46%2Fgo-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dn46","download_url":"https://codeload.github.com/dn46/go-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dn46%2Fgo-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","shell"],"created_at":"2026-01-14T17:50:54.315Z","updated_at":"2026-01-14T17:50:54.904Z","avatar_url":"https://github.com/dn46.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Shell\n\nGo-Shell is a simple shell implemented in Go. It supports basic commands, navigation with `cd`, and exiting with `exit`.\n\n## Features\n\n- Execute any command available in the PATH\n- Navigate directories with `cd`\n- `cd` with no arguments returns to the home directory\n- Exit the shell with `exit`\n- Colored output for username, hostname, and current directory\n\n## Usage\n\nTo run the shell, simply execute:\n\n```bash\nmake run\n```\n\n## Code Structure\n\n- `Shell`: The main shell struct that contains a reader to read input from the user.\n- `Run`: The main loop of the shell that prints the prompt, reads input, and executes the input.\n- `execInput`: A function that takes a string input, parses it, and executes the command.\n\n## Acknowledgements\n\nThis project is inspired and based on `Writing a simple shell in Go` found on this [blog post](https://blog.init-io.net/post/2018/07-01-go-unix-shell/). Give love to the author for making it available.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdn46%2Fgo-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdn46%2Fgo-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdn46%2Fgo-shell/lists"}