Skip to content

Commit 5ab82f9

Browse files
committed
updates
1 parent e498c26 commit 5ab82f9

File tree

13 files changed

+191
-351
lines changed

13 files changed

+191
-351
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ jobs:
3333
ruby-version: '3.2'
3434
bundler-cache: true
3535

36-
- name: Generate all examples
36+
- name: Generate all examples and fixtures
3737
run: bundle exec run examples regen
3838

39-
- name: Generate all fixtures
40-
run: bundle exec run fixtures regen
41-
4239
- name: Run shellcheck and shfmt tests
4340
run: bundle exec run static
4441

@@ -68,7 +65,7 @@ jobs:
6865
- name: Setup Ruby
6966
uses: ruby/setup-ruby@v1
7067
with:
71-
ruby-version: '3.1'
68+
ruby-version: '3.2'
7269
bundler-cache: true
7370

7471
- name: Generate all subjects
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
completions.yml
2+
private
3+
src/*.sh

spec/fixtures/workspaces/lib-custom-source/cli

Lines changed: 0 additions & 184 deletions
This file was deleted.

spec/fixtures/workspaces/lib-upgrade/src/lib/colors.sh

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
# ---
2-
# Color functions [@bashly-upgrade colors]
3-
# This file is a part of Bashly standard library
4-
#
5-
# Usage:
6-
# Use any of the functions below to color or format a portion of a string.
7-
#
8-
# echo "before $(red this is red) after"
9-
# echo "before $(green_bold this is green_bold) after"
10-
#
11-
# Color output will be disabled if `NO_COLOR` environment variable is set
12-
# in compliance with https://no-color.org/
13-
#
14-
# ---
15-
1+
## Color functions [@bashly-upgrade colors]
2+
## This file is a part of Bashly standard library
3+
##
4+
## Usage:
5+
## Use any of the functions below to color or format a portion of a string.
6+
##
7+
## echo "before $(red this is red) after"
8+
## echo "before $(green_bold this is green_bold) after"
9+
##
10+
## Color output will be disabled if `NO_COLOR` environment variable is set
11+
## in compliance with https://no-color.org/
12+
##
1613
print_in_color() {
1714
local color="$1"
1815
shift
1916
if [[ -z ${NO_COLOR+x} ]]; then
20-
printf "$color%b\e[0m\n" "$*";
17+
printf "$color%b\e[0m\n" "$*"
2118
else
22-
printf "%b\n" "$*";
19+
printf "%b\n" "$*"
2320
fi
2421
}
2522

0 commit comments

Comments
 (0)