{"id":19838535,"url":"https://github.com/metal-stack/updater","last_synced_at":"2025-05-01T18:31:22.777Z","repository":{"id":48929001,"uuid":"206523384","full_name":"metal-stack/updater","owner":"metal-stack","description":"Updater is a small utility to update your go executables from a http server","archived":false,"fork":false,"pushed_at":"2024-07-08T11:25:48.000Z","size":52,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T16:49:29.922Z","etag":null,"topics":["checksum","cli","golang","updater"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metal-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-05T09:16:55.000Z","updated_at":"2024-07-08T11:24:28.000Z","dependencies_parsed_at":"2024-06-19T13:33:06.639Z","dependency_job_id":"873a4c2e-62ad-4d78-ab63-99ee41791179","html_url":"https://github.com/metal-stack/updater","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metal-stack%2Fupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metal-stack","download_url":"https://codeload.github.com/metal-stack/updater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924733,"owners_count":21666030,"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":["checksum","cli","golang","updater"],"created_at":"2024-11-12T12:18:06.954Z","updated_at":"2025-05-01T18:31:22.460Z","avatar_url":"https://github.com/metal-stack.png","language":"Go","readme":"# Updater\n\nCLI´s get widely used. Updating them for various OSes is a pain. The common approach is to add a README.md on the project website an tell the user how to download and install that binary on his local machine.  \n\nUpdater will do that for the user with a simple command.\n\nIt will download the binary from github releases.\n\nExample usage:\n\n```go\npackage main\n\nimport (\n    \"github.com/metal-stack/updater\"\n    \"github.com/spf13/cobra\"\n)\n\nconst (\n    programName = \"mybinary\"\n    owner = \"my-github-organisation\"\n    repo = \"my-cli\"\n)\n\nvar (\n    updateCmd = \u0026cobra.Command{\n        Use:   \"update\",\n        Short: \"update the program\",\n    }\n    updateCheckCmd = \u0026cobra.Command{\n        Use:   \"check\",\n        Short: \"check for update of the program\",\n        RunE: func(cmd *cobra.Command, args []string) error {\n            u, err := updater.New(owner, repo, programName)\n            if err != nil {\n                return err\n            }\n            return u.Check()\n        },\n    }\n    updateDoCmd = \u0026cobra.Command{\n        Use:   \"do\",\n        Short: \"do the update of the program\",\n        RunE: func(cmd *cobra.Command, args []string) error {\n            u, err := updater.New(owner, repo, programName)\n            if err != nil {\n                return err\n            }\n            return u.Do()\n        },\n    }\n\n)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetal-stack%2Fupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetal-stack%2Fupdater/lists"}