GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PeterDaveHello/docker-shfmt: 🐳 Dockerized "shfmt" 🐚 an amazing shell script formatter

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
renovate.json
renovate.json
 
 

Repository files navigation

shfmt

Build Status Docker Hub pulls

Docker Hub badge

Dockerized shfmt shell script formatter.

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 mvdan/sh#68, this repository might not be actively maintained.

Usage

Command line

Run Docker container using peterdavehello/shfmt image:

docker run --rm -it -v /path/of/scripts:/path/in/docker peterdavehello/shfmt:2.6.4 shfmt --version

Replace --version with the parameters you want, for example:

docker run --rm -it -v "$(pwd)":/scripts peterdavehello/shfmt:2.6.4 shfmt -sr -i 2 -d -ci /scripts

Don't forget to replace 2.6.4 with the latest tag or the tagged version you want.

GitLab CI example

shfmt:
  stage: test
  image: peterdavehello/shfmt:2.6.4
  before_script:
    - shfmt -version
  script:
    - shfmt -sr -i 2 -d -ci .
  tags:
    - docker

About

🐳 Dockerized "shfmt" 🐚 an amazing shell script formatter

hub.docker.com/r/peterdavehello/shfmt/

Topics

bashcheckercontainerdockerdocker-imagedockerfilehacktoberfestimagescriptshshellshfmtstylestylelint

Resources

Readme
Activity

Stars

10 stars

Watchers

1 watching

Forks

2 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.