{"id":19989793,"url":"https://github.com/wcygan/go-coreutils","last_synced_at":"2026-05-13T09:36:31.535Z","repository":{"id":57655585,"uuid":"448353002","full_name":"wcygan/go-coreutils","owner":"wcygan","description":"A Go implementation of gnu-coreutils programs","archived":false,"fork":false,"pushed_at":"2022-02-02T20:20:34.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T12:20:18.204Z","etag":null,"topics":["coreutils","coreutils-programs"],"latest_commit_sha":null,"homepage":"https://www.gnu.org/software/coreutils/manual/coreutils.html","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/wcygan.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}},"created_at":"2022-01-15T18:00:55.000Z","updated_at":"2022-01-15T19:09:59.000Z","dependencies_parsed_at":"2022-09-01T14:10:18.785Z","dependency_job_id":null,"html_url":"https://github.com/wcygan/go-coreutils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcygan%2Fgo-coreutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcygan%2Fgo-coreutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcygan%2Fgo-coreutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wcygan%2Fgo-coreutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wcygan","download_url":"https://codeload.github.com/wcygan/go-coreutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241430318,"owners_count":19961635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["coreutils","coreutils-programs"],"created_at":"2024-11-13T04:50:13.226Z","updated_at":"2025-11-26T09:01:41.451Z","avatar_url":"https://github.com/wcygan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Coreutils\n\nA Go implementation of gnu-coreutils programs (https://www.gnu.org/software/coreutils/manual/coreutils.html)\n\n## Installation via [Go](https://go.dev/dl/)\n\nInstall on any platform using `go get`:\n\n```\n$ go get github.com/wcygan/go-coreutils\n```\n\n## How to run\n\nOnce the binary is installed, use the `go-coreutils` program like so:\n\n```\n$ go-coreutils\nA Go implementation of gnu-coreutils programs - https://www.gnu.org/software/coreutils/\n\nUsage:\n  go-coreutils [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  du          Disk Usage\n  echo        Print a line of text\n  help        Help about any command\n  ls          List directory contents\n  ping        Tests the reachability of a host on a network\n  pwd         Print working directory\n  tree        Display a directory tree\n  whoami      Print effective user name\n  yes         Repeats the provided text until interrupted\n\nFlags:\n  -h, --help   help for go-coreutils\n\nUse \"go-coreutils [command] --help\" for more information about a command.\n```\n\nYou can execute a subcommand like `tree` in the following way:\n\n```\n$ go-coreutils tree\n.\n├── LICENSE\n├── cmd\n│   ├── common.go\n│   ├── du.go\n│   ├── echo.go\n│   ├── ls.go\n│   ├── ping.go\n│   ├── pwd.go\n│   ├── root.go\n│   ├── tree.go\n│   ├── whoami.go\n│   └── yes.go\n├── constants\n│   └── shared_constants.go\n├── du\n│   └── du.go\n├── echo\n│   ├── echo.go\n│   └── echo_test.go\n├── gco\n├── go.mod\n├── go.sum\n├── ls\n│   ├── ls.go\n│   └── ls_test.go\n├── main.go\n├── ping\n│   └── ping.go\n├── pwd\n│   ├── pwd.go\n│   └── pwd_test.go\n├── readme.md\n├── tree\n│   ├── testdir\n│   │   ├── a\n│   │   │   └── apple\n│   │   ├── b\n│   │   │   └── banana\n│   │   ├── bar\n│   │   ├── baz\n│   │   ├── c\n│   │   │   └── orange\n│   │   └── foo\n│   └── tree.go\n├── whoami\n│   ├── whoami.go\n│   └── whoami_test.go\n└── yes\n    └── yes.go\n\n```\n\n## Add a command using [Cobra](https://cobra.dev/)\n\nMake sure you have the Cobra generator ([Install](https://cobra.dev/#install), [Docs](https://github.com/spf13/cobra/blob/master/cobra/README.md)) installed.\n\nWith the Cobra generator you can initialize the Cobra framework, add commands \u0026 subcommands, and more.\n\n```\n$ cobra init\n$ cobra add \u003ccommand\u003e\n$ cobra add \u003ccommand\u003e \u003csubcommand\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcygan%2Fgo-coreutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwcygan%2Fgo-coreutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwcygan%2Fgo-coreutils/lists"}