{"id":16092290,"url":"https://github.com/alecthomas/bootstrap","last_synced_at":"2025-03-18T06:30:58.956Z","repository":{"id":57578388,"uuid":"21231509","full_name":"alecthomas/bootstrap","owner":"alecthomas","description":"Go application bootstrapping","archived":false,"fork":false,"pushed_at":"2023-12-02T14:25:19.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T07:49:34.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/alecthomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2014-06-26T07:10:54.000Z","updated_at":"2019-06-28T05:19:06.000Z","dependencies_parsed_at":"2024-06-20T09:30:21.774Z","dependency_job_id":"ecd1a566-ff71-4295-b99a-0efe0cdcda6b","html_url":"https://github.com/alecthomas/bootstrap","commit_stats":null,"previous_names":["alecthomas/util"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fbootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fbootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fbootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fbootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecthomas","download_url":"https://codeload.github.com/alecthomas/bootstrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243907262,"owners_count":20367200,"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":[],"created_at":"2024-10-09T16:06:46.793Z","updated_at":"2025-03-18T06:30:58.378Z","avatar_url":"https://github.com/alecthomas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# General application utilities\n\nThe functionality is split up into \"modules\", activated with a bitmask.\n\n```go\napp := kingpin.New(\"app\", \"Description.\")\nutil.Bootstrap(app, util.LoggingModule|util.DebugModule|util.PIDFileModule|util.DaemonizeModule, \u0026util.Options{\n\t\tLogToStderrByDefault: true,\n\t\tUseSystemPIDFilePath: true,\n})\n```\n\n## Modules\n\n| Module flag | Provided functionality |\n|-------------|------------------------|\n| `util.LoggingModule` | Configurable logging via flags, including sinks and levels. |\n| `util.DebugModule` | Add a `util.DebugFlag`, also used by some of the other modules. |\n| `util.PIDFileModule` | Prevent multiple instances of the application running, via a `--pid-file` flag. |\n| `util.DaemonizeModule` | Add `--daemon` flag which daemonizes the process. Usually used in conjunection with `util.PIDFileModule`. |\n\nAs a convenience, you can use `util.AllModules` to activate all modules.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fbootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecthomas%2Fbootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fbootstrap/lists"}