Skip to content

Commit

Permalink
chore(scripts): Adjust indentation of help messages (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
aifrak authored May 30, 2023
1 parent 986927f commit 5d91c90
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 45 deletions.
30 changes: 15 additions & 15 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ $0 [command] [OPTIONS] [sub-command]
Example: $0 --dc-dev dc:exec ./run test
Options:
-h, --help Print this message
--dc-ci Use "ci" file when docker compose
--dc-dev Use "dev" file when docker compose
-h, --help Print this message
--dc-ci Use "ci" file when docker compose
--dc-dev Use "dev" file when docker compose
Main commands:
help Print this message
format Format code of the whole project
install:deps Install all dependencies
lint Lint the whole project
lint:staged Lint staged files
pre-commit Lint staged files and test the whole project
test Test the whole project
help Print this message
format Format code of the whole project
install:deps Install all dependencies
lint Lint the whole project
lint:staged Lint staged files
pre-commit Lint staged files and test the whole project
test Test the whole project
docker compose commands:
dc:build Build all docker services
dc:console Build, start, up all services and console of "app" docker service
dc:exec Execute a command in a "app" docker service
dc:run Run a command inside the "app" docker service and remove stopped containers
dc:up Starts all docker services
dc:build Build all docker services
dc:console Build, start, up all services and console of "app" docker service
dc:exec Execute a command in a "app" docker service
dc:run Run a command inside the "app" docker service and remove stopped containers
dc:up Starts all docker services
EOF

help:release
Expand Down
4 changes: 2 additions & 2 deletions scripts/run/css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ function help:css {
cat <<EOF
CSS commands:
format:css Format CSS, SCSS, SASS, LESS and any files containing CSS
lint:css Lint CSS, SCSS, SASS, LESS and any files containing CSS
format:css Format CSS, SCSS, SASS and LESS files
lint:css Lint CSS, SCSS, SASS and LESS
EOF
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/run/docker_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ function help:dockerfile {
cat <<EOF
Dockerfile commands:
format:dockerfile Format all Dockerfiles
lint:dockerfile Lint all Dockerfiles
format:dockerfile Format all Dockerfiles
lint:dockerfile Lint all Dockerfiles
EOF
}

Expand Down
16 changes: 8 additions & 8 deletions scripts/run/elixir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ function help:elixir {
cat <<EOF
Elixir commands:
format:elixir Format Elixir files
lint:elixir:credo Perform checks with Credo on Elixir files
lint:elixir:format Check format on Elixir files
lint:elixir Lint Elixir files
lint:elixir:light Lint Elixir files without credo and formatter
test:elixir Test Elixir files
version:elixir Show Elixir version
format:elixir Format Elixir files
lint:elixir:credo Perform checks with Credo on Elixir files
lint:elixir:format Check format on Elixir files
lint:elixir Lint Elixir files
lint:elixir:light Lint Elixir files without credo and formatter
test:elixir Test Elixir files
version:elixir Show Elixir version
Erlang commands:
version:erlang Show Erlang version
version:erlang Show Erlang version
EOF
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/run/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ function help:git {
cat <<EOF
Git commands:
lint:git:commit Lint git commit message
is-contributor-dependabot:git:commit Check if Dependabot is (co-)author of the commit
lint:git:commit Lint git commit message
is-contributor-dependabot:git:commit Check if Dependabot is (co-)author of the commit
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run/html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function help:html {
cat <<EOF
HTML commands:
lint:html Lint HTML files and templates
lint:html Lint HTML files and templates
EOF
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/run/javascript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
function help:js {
cat <<EOF
Javascript commands:
format:js Format JS files and any files containing Javascript
lint:js Lint JS files and any files containing Javascript
format:js Format JS files and any files containing Javascript
lint:js Lint JS files and any files containing Javascript
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run/markdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function help:markdown {
cat <<EOF
Markdown commands:
lint:markdown Lint markdown files
lint:markdown Lint markdown files
EOF
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/run/prettier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ function help:prettier {
cat <<EOF
Prettier commands:
format:prettier Format files handled by Prettier
lint:prettier Lint files handled by Prettier
format:prettier Format files handled by Prettier
lint:prettier Lint files handled by Prettier
EOF
}

Expand Down
15 changes: 8 additions & 7 deletions scripts/run/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ function help:release {
cat <<EOF
Release commands:
release Update CHANGELOG.md and version files, cut a release and publish to Github
release:ci [MODIFIER] Release from CI. If modifier given, it will prerelease.
release:dry-run Simulate cutting a release without updating files or pushing to git
prerelease Cut a prerelease, tag with a suffix it and publish it to Github (default: dev)
release Update CHANGELOG.md and version files, cut a release and publish to Github
release:ci Release from CI. If modifier given, it will prerelease.
- Usage: release:ci [MODIFIER]
release:dry-run Simulate cutting a release without updating files or pushing to git
prerelease Cut a prerelease, tag with a suffix it and publish it to Github (default: dev)
- Usage: prerelease [dev|alpha|beta|rc]
test:release Dry run release, run tests for release
test:release:hooks Run tests for hooks during a release
test:release-it:custom Run tests related to custom hooks and/or plugins for release-it
test:release Dry run release, run tests for release
test:release:hooks Run tests for hooks during a release
test:release-it:custom Run tests related to custom hooks and/or plugins for release-it
EOF
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/run/shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function help:shell {
cat <<EOF
Shell commands:
format:shell Format given Shell scripts
lint:shell Lint given Shell scripts
format:shell Format given Shell scripts
lint:shell Lint given Shell scripts
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run/spellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function help:spellcheck {
cat <<EOF
Spellcheck commands:
lint:spellcheck Run spellcheck
lint:spellcheck Run spellcheck
EOF
}

Expand Down

0 comments on commit 5d91c90

Please sign in to comment.