Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Jul 14, 2024
1 parent e498c26 commit 5ab82f9
Show file tree
Hide file tree
Showing 13 changed files with 191 additions and 351 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ jobs:
ruby-version: '3.2'
bundler-cache: true

- name: Generate all examples
- name: Generate all examples and fixtures
run: bundle exec run examples regen

- name: Generate all fixtures
run: bundle exec run fixtures regen

- name: Run shellcheck and shfmt tests
run: bundle exec run static

Expand Down Expand Up @@ -68,7 +65,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
ruby-version: '3.2'
bundler-cache: true

- name: Generate all subjects
Expand Down
2 changes: 2 additions & 0 deletions spec/fixtures/workspaces/completions-private/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
completions.yml
private
src/*.sh
184 changes: 0 additions & 184 deletions spec/fixtures/workspaces/lib-custom-source/cli

This file was deleted.

31 changes: 14 additions & 17 deletions spec/fixtures/workspaces/lib-upgrade/src/lib/colors.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
# ---
# Color functions [@bashly-upgrade colors]
# This file is a part of Bashly standard library
#
# Usage:
# Use any of the functions below to color or format a portion of a string.
#
# echo "before $(red this is red) after"
# echo "before $(green_bold this is green_bold) after"
#
# Color output will be disabled if `NO_COLOR` environment variable is set
# in compliance with https://no-color.org/
#
# ---

## Color functions [@bashly-upgrade colors]
## This file is a part of Bashly standard library
##
## Usage:
## Use any of the functions below to color or format a portion of a string.
##
## echo "before $(red this is red) after"
## echo "before $(green_bold this is green_bold) after"
##
## Color output will be disabled if `NO_COLOR` environment variable is set
## in compliance with https://no-color.org/
##
print_in_color() {
local color="$1"
shift
if [[ -z ${NO_COLOR+x} ]]; then
printf "$color%b\e[0m\n" "$*";
printf "$color%b\e[0m\n" "$*"
else
printf "%b\n" "$*";
printf "%b\n" "$*"
fi
}

Expand Down
Loading

0 comments on commit 5ab82f9

Please sign in to comment.