{"id":16162089,"url":"https://github.com/peterdavehello/docker-shfmt","last_synced_at":"2025-03-18T22:30:56.071Z","repository":{"id":46910831,"uuid":"141013492","full_name":"PeterDaveHello/docker-shfmt","owner":"PeterDaveHello","description":"🐳 Dockerized \"shfmt\" 🐚 an amazing shell script formatter","archived":false,"fork":false,"pushed_at":"2022-01-17T14:28:05.000Z","size":20,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T12:32:24.459Z","etag":null,"topics":["bash","checker","container","docker","docker-image","dockerfile","hacktoberfest","image","script","sh","shell","shfmt","style","stylelint"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/peterdavehello/shfmt/","language":"Dockerfile","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/PeterDaveHello.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}},"created_at":"2018-07-15T09:14:09.000Z","updated_at":"2022-05-25T18:41:49.000Z","dependencies_parsed_at":"2022-09-02T18:42:35.121Z","dependency_job_id":null,"html_url":"https://github.com/PeterDaveHello/docker-shfmt","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-shfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-shfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-shfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-shfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterDaveHello","download_url":"https://codeload.github.com/PeterDaveHello/docker-shfmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"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":["bash","checker","container","docker","docker-image","dockerfile","hacktoberfest","image","script","sh","shell","shfmt","style","stylelint"],"created_at":"2024-10-10T02:29:02.096Z","updated_at":"2025-03-18T22:30:55.812Z","avatar_url":"https://github.com/PeterDaveHello.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shfmt\n\n[![Build Status](https://app.travis-ci.com/PeterDaveHello/docker-shfmt.svg?branch=master)](https://app.travis-ci.com/PeterDaveHello/docker-shfmt)\n[![Docker Hub pulls](https://img.shields.io/docker/pulls/peterdavehello/shfmt.svg)](https://hub.docker.com/r/peterdavehello/shfmt/)\n\n[![Docker Hub badge](https://dockeri.co/image/peterdavehello/shfmt)](https://hub.docker.com/r/peterdavehello/shfmt/)\n\nDockerized [shfmt](https://github.com/mvdan/sh#shfmt) shell script formatter.\n\n**Please note that I originally built this Docker image because that there wasn't an official one, but now there it is, and it also uses the Dockerfile from this repository as the reference to create the official one, as you can see \u003chttps://github.com/mvdan/sh/issues/68\u003e, this repository might not be actively maintained.**\n\n## Usage\n\n### Command line\n\nRun Docker container using [peterdavehello/shfmt](https://hub.docker.com/r/peterdavehello/shfmt) image:\n\n```sh\ndocker run --rm -it -v /path/of/scripts:/path/in/docker peterdavehello/shfmt:2.6.4 shfmt --version\n```\n\nReplace `--version` with the parameters you want, for example:\n\n```sh\ndocker run --rm -it -v \"$(pwd)\":/scripts peterdavehello/shfmt:2.6.4 shfmt -sr -i 2 -d -ci /scripts\n```\n\nDon't forget to replace `2.6.4` with the latest tag or the tagged version you want.\n\n### GitLab CI example\n\n```yaml\nshfmt:\n  stage: test\n  image: peterdavehello/shfmt:2.6.4\n  before_script:\n    - shfmt -version\n  script:\n    - shfmt -sr -i 2 -d -ci .\n  tags:\n    - docker\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fdocker-shfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdavehello%2Fdocker-shfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fdocker-shfmt/lists"}