{"id":21172751,"url":"https://github.com/ryansch/dotbot-ifarch","last_synced_at":"2025-03-14T17:43:16.500Z","repository":{"id":137336262,"uuid":"451579388","full_name":"ryansch/dotbot-ifarch","owner":"ryansch","description":"Conditional execution of dotbot directives based on the local architecture","archived":false,"fork":false,"pushed_at":"2023-12-01T18:02:08.000Z","size":6,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T00:08:19.279Z","etag":null,"topics":["dotbot","dotbot-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ryansch.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":"2022-01-24T18:12:46.000Z","updated_at":"2022-01-24T18:14:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2e70db5-dec0-4bd8-ac79-a48ec620ea2c","html_url":"https://github.com/ryansch/dotbot-ifarch","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/ryansch%2Fdotbot-ifarch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryansch%2Fdotbot-ifarch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryansch%2Fdotbot-ifarch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryansch%2Fdotbot-ifarch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryansch","download_url":"https://codeload.github.com/ryansch/dotbot-ifarch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243623359,"owners_count":20321024,"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":["dotbot","dotbot-plugin"],"created_at":"2024-11-20T16:29:18.543Z","updated_at":"2025-03-14T17:43:16.475Z","avatar_url":"https://github.com/ryansch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotbot-ifarch\n\nConditional execution of dotbot directives based on the local architecture with thanks to [dotbot-ifplatform](https://github.com/ssbanerje/dotbot-ifplatform).\n\n## Prerequisites\nThis plugin requires [`dotbot`](https://github.com/anishathalye/dotbot) to be installed.\n\n## Installation\n1. Run `git submodule add https://github.com/ryansch/dotbot-ifarch.git`\n2. Run `git submodule update --init --recursive`\n3. Pass in the CLI argument `--plugin-dir dotbot-ifarch` when executing the `dotbot` executable.\n\n## Usage\n\nAdd the `if\u003carch\u003e` directive to the `dotbot` YAML file to conditionally execute the directives.\nFor example:\n\n```yaml\n- ifaarch64:\n    - shell:\n        - echo Raspberry pi?\n\n- ifarm64:\n    - shell:\n        - echo Apple Silicon?\n\n- ifx86_64:\n    - shell:\n        - echo Intel/AMD\n```\n\n### Details\n\nThe plugin queries the local architecture using the `platform` module which uses `uname -m`.\nAcceptable values of `\u003carch\u003e` in the `if\u003carch\u003e` directive are shown below:\n\n- `aarch64`\n- `arm64`\n- `armv7l`\n- `x86_64`\n\nNOTE: Issues/PRs will be accepted to help fill out this list.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryansch%2Fdotbot-ifarch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryansch%2Fdotbot-ifarch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryansch%2Fdotbot-ifarch/lists"}