Skip to content

Commit

Permalink
add cat.blue, cat.cyan, cat.green, cat.grey, cat.red, cat.magenta, ca…
Browse files Browse the repository at this point in the history
…t.yellow
  • Loading branch information
siakhooi committed Apr 7, 2024
1 parent 5666a51 commit fc94c43
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ git-commit-and-push:
create-release:
scripts/create-release.sh

set-path:
export PATH=$PATH:$(pwd)/src/bin
prepare:
sudo apt update -y
sudo apt install pandoc shellcheck fakeroot -y
Expand Down
5 changes: 3 additions & 2 deletions release.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
set -e

RELEASE_VERSION=1.2.0
RELEASE_TITLE='add clear-colors, fix secret'
RELEASE_VERSION=1.3.0
RELEASE_TITLE='add cat.blue, cat.cyan, cat.green, cat.grey, cat.red, cat.magenta, cat.yellow'
ISSUE_TO_CLOSE="#1"
10 changes: 9 additions & 1 deletion scripts/git-commit-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ set -e

. ./release.env

git commit -m "$RELEASE_TITLE"
if [[ -n $ISSUE_TO_CLOSE ]]; then
GIT_MESSAGE="$RELEASE_TITLE, Close $ISSUE_TO_CLOSE"
else
GIT_MESSAGE="$RELEASE_TITLE"
fi

set -x

git commit -m "$GIT_MESSAGE"

git push
5 changes: 5 additions & 0 deletions src/bin/cat.blue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.blue -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.cyan
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.cyan -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.green
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.green -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.grey
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.grey -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.magenta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.magenta -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.red
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.red -e "${line}"
done
5 changes: 5 additions & 0 deletions src/bin/cat.yellow
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

while read -r line; do
echo.yellow -e "${line}"
done
14 changes: 14 additions & 0 deletions src/md/siakhooi-devutils-echo-colors.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ echo.magenta - echo with magenta color.\
echo.red - echo with red color.\
echo.yellow - echo with yellow color.\
echo.grey - echo with grey color.\
cat.blue - cat file with blue color.\
cat.cyan - cat file with cyan color.\
cat.green - cat file with green color.\
cat.magenta - cat file with magenta color.\
cat.red - cat file with red color.\
cat.yellow - cat file with yellow color.\
cat.grey - cat file with grey color.\
clear-colors - remove colors from standard input and print to standard output.

# SYNOPSIS
Expand All @@ -20,6 +27,13 @@ clear-colors - remove colors from standard input and print to standard output.
**echo.red** [echo arguments]\
**echo.yellow** [echo arguments]\
**echo.grey** [echo arguments]\
**cat.blue** [cat arguments]\
**cat.cyan** [cat arguments]\
**cat.green** [cat arguments]\
**cat.magenta** [cat arguments]\
**cat.red** [cat arguments]\
**cat.yellow** [cat arguments]\
**cat.grey** [cat arguments]\
**clear-colors**

# DESCRIPTION
Expand Down

0 comments on commit fc94c43

Please sign in to comment.