{"id":23543239,"url":"https://github.com/inkel/consul-catalog","last_synced_at":"2025-06-16T08:11:21.442Z","repository":{"id":136720317,"uuid":"103163734","full_name":"inkel/consul-catalog","owner":"inkel","description":"Queries Consul catalog and print out registered nodes and services. Useful for tab completion.","archived":false,"fork":false,"pushed_at":"2017-09-11T18:38:48.000Z","size":2,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T06:39:55.025Z","etag":null,"topics":["cli","completion","consul","consul-catalog","devops","devops-tools","go","golang","golang-application"],"latest_commit_sha":null,"homepage":null,"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/inkel.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":"2017-09-11T17:01:16.000Z","updated_at":"2023-02-15T02:04:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"483bf9ef-4c13-4ac5-acad-c1b090ce9fb0","html_url":"https://github.com/inkel/consul-catalog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inkel/consul-catalog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fconsul-catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fconsul-catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fconsul-catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fconsul-catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inkel","download_url":"https://codeload.github.com/inkel/consul-catalog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fconsul-catalog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260124097,"owners_count":22962207,"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":["cli","completion","consul","consul-catalog","devops","devops-tools","go","golang","golang-application"],"created_at":"2024-12-26T06:19:05.505Z","updated_at":"2025-06-16T08:11:21.395Z","avatar_url":"https://github.com/inkel.png","language":"Go","readme":"# consul-catalog\nQueries [Consul](https://consul.io/) catalog and prints out registered nodes and services.\n\n## Usage\nInstall the latest version:\n\n```\ngo install -u github.com/inkel/consul-catalog\n```\n\nBy default it will print the nodes and services registered. You can control whether to include nodes or services with the following flags:\n\n```\n$ ./consul-catalog -h\nUsage of ./consul-catalog:\n  -nodes\n        Include node names in output (default true)\n  -services\n        Include services in output (default true)\n```\n\nThis is useful for TAB completion on the CLI. For instance, in Bash, to add TAB completion to your `ssh` command, you could do something like this:\n\n```bash\n_consul_catalog() {\n    COMPRELY=( $( compgen -W \"$(consul-catalog -services=false)\" -- \"$(_get_cword)\" ) )\n}\ncomplete -F _consul_catalog ssh\n```\n\nNote we are using the `-services=false` flag to exclude services from being printed.\n\n## License\nSee [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkel%2Fconsul-catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkel%2Fconsul-catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkel%2Fconsul-catalog/lists"}