Skip to content

Commit 177abb0

Browse files
committed
Minor cleanup to the code to bring it in line with our coding standards
1 parent 108a277 commit 177abb0

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ All notable changes to this project will be documented in this file.
55

66
This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
77

8+
### [v0.1.1](https://github.com/GitToolbox/git-hook-multiplexer/compare/v0.1.0...v0.1.1)
9+
10+
> Released on February, 16th 2021
11+
12+
- Minor cleanup to the code to bring it in line with our coding standards [`[head]`](https://github.com/GitToolbox/git-hook-multiplexer/commit/)
13+
814
### [v0.1.0](https://github.com/GitToolbox/git-hook-multiplexer/releases/v0.1.0)
915

1016
> Released on February, 10th 2021
1117
12-
- The initial commit [`[head]`](https://github.com/GitToolbox/git-hook-multiplexer/commit/)
18+
- The initial commit [`[108a277]`](https://github.com/GitToolbox/git-hook-multiplexer/commit/108a277a368b6e0924663bf16c73dbef0abea46e)
1319

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.1

src/multiplexer

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ EXIT_FAILURE=1
4949
# Run some basic checks to make sure everything looks right. #
5050
# ---------------------------------------------------------------------------------------- #
5151

52-
function run_pre_checks()
52+
function run_pre_checks
5353
{
5454
if [[ ! -d "${HOOKS_DIR}" ]]; then
5555
warn "The hook directory ${HOOKS_DIR} doesn't exist - skipping"
@@ -110,6 +110,7 @@ function process_hooks()
110110
# -------------------------------------------------------------------------------- #
111111
# Show the user a success message. #
112112
# -------------------------------------------------------------------------------- #
113+
113114
function success()
114115
{
115116
local message="${1:-}"
@@ -124,6 +125,7 @@ function success()
124125
# -------------------------------------------------------------------------------- #
125126
# Show the user a warning message. #
126127
# -------------------------------------------------------------------------------- #
128+
127129
function warn()
128130
{
129131
local message="${1:-}"
@@ -138,6 +140,7 @@ function warn()
138140
# -------------------------------------------------------------------------------- #
139141
# Show the user a failure message. #
140142
# -------------------------------------------------------------------------------- #
143+
141144
function fail()
142145
{
143146
local message="${1:-}"
@@ -152,6 +155,7 @@ function fail()
152155
# -------------------------------------------------------------------------------- #
153156
# Show the user an information message. #
154157
# -------------------------------------------------------------------------------- #
158+
155159
function info()
156160
{
157161
local message="${1:-}"
@@ -166,6 +170,7 @@ function info()
166170
# -------------------------------------------------------------------------------- #
167171
# Center some text on the screen. #
168172
# -------------------------------------------------------------------------------- #
173+
169174
function center_text()
170175
{
171176
textsize=${#1}
@@ -179,6 +184,7 @@ function center_text()
179184
# -------------------------------------------------------------------------------- #
180185
# Draw a line on the screen. #
181186
# -------------------------------------------------------------------------------- #
187+
182188
function draw_line()
183189
{
184190
local start=$'\e(0' end=$'\e(B' line='qqqqqqqqqqqqqqqq'
@@ -195,6 +201,7 @@ function draw_line()
195201
# -------------------------------------------------------------------------------- #
196202
# Give a little status report at the end of the run. #
197203
# -------------------------------------------------------------------------------- #
204+
198205
function give_report
199206
{
200207
local status
@@ -211,6 +218,7 @@ function give_report
211218
# ---------------------------------------------------------------------------------------- #
212219
# The main function where all of the heavy lifting and script config is done. #
213220
# ---------------------------------------------------------------------------------------- #
221+
214222
function main()
215223
{
216224
if [[ $SUPPORTED_HOOKS =~ $HOOK_NAME ]]; then
@@ -236,4 +244,3 @@ main "${@}"
236244
# ---------------------------------------------------------------------------------------- #
237245
# This is the end - nothing more to see here. #
238246
# ---------------------------------------------------------------------------------------- #
239-

0 commit comments

Comments
 (0)