{"id":15482979,"url":"https://github.com/devth/cyg","last_synced_at":"2025-03-28T15:22:58.429Z","repository":{"id":15213818,"uuid":"17942282","full_name":"devth/cyg","owner":"devth","description":"Minimalist config for Clojure","archived":false,"fork":false,"pushed_at":"2014-03-20T13:50:55.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T15:32:35.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devth.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":"2014-03-20T12:48:29.000Z","updated_at":"2014-03-20T13:50:55.000Z","dependencies_parsed_at":"2022-09-12T06:10:54.605Z","dependency_job_id":null,"html_url":"https://github.com/devth/cyg","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/devth%2Fcyg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devth%2Fcyg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devth%2Fcyg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devth%2Fcyg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devth","download_url":"https://codeload.github.com/devth/cyg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246050294,"owners_count":20715626,"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-02T05:10:27.808Z","updated_at":"2025-03-28T15:22:58.409Z","avatar_url":"https://github.com/devth.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cyg\n\nMinimalist configuration. Expects a `config.edn` or `config.clj` path to be\navailable as a resource. Use Leiningen profiles to specify how config gets on\nthe resource paths.\n\n**Warning**: wet paint.\n\n```clojure\n[cyg \"0.1.4\"]\n```\n\n## Usage\n\n```clojure\n(require '[cyg.core :refer [cf]])\n\n(if-let [qux (cf :foo :bar :baz :qux)]\n  (println \"found config\" qux\")\n  (println \"config is not set\"))\n```\n\nWith this configuration on resource path:\n\n```\n;; config.edn\n{:foo {:bar {:baz {:qux \"hi cyg!\"}}}}\n```\n\nThe above example would print `hi cyg`.\n\n## Auto reload\n\nBy default, config is only loaded once on startup. If you'd like to enable\nauto-reload (useful during dev), run:\n\n```clojure\n(cyg.core/autoreload!)\n```\n\n\n## TODO\n\n- A companion lein plugin to help with config setup.\n- By default, cyg should setup `config/:profile` resource-paths for `dev`\n  and `prod`, so if you place `config.edn` at `config/dev/config.edn` cyg will\n  load it when the Leiningen `dev` profile is active.\n\n## License\n\nCopyright © 2014 Trevor Hartman\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevth%2Fcyg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevth%2Fcyg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevth%2Fcyg/lists"}