File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 5959 ruby-version : ' 3.1'
6060 bundler-cache : true
6161
62+ - name : Generate all subjects
63+ run : bundle exec run examples regen
6264 - name : Run shellcheck tests
6365 run : bundle exec run shellcheck
64-
6566 - name : Run shfmt tests
6667 run : bundle exec run shfmt
Original file line number Diff line number Diff line change @@ -70,9 +70,22 @@ action :changelog do
7070 File.write "CHANGELOG.md", File.read("CHANGELOG.md").gsub('repeatableflags', 'repeatable flags')
7171end
7272
73+ command :examples
74+
75+ help "Regenerate example scripts"
76+ action :regen do
77+ # Patch the PATH to allow the extensible example to run properly
78+ ENV['PATH']="#{Dir.pwd}/examples/extensible:#{ENV['PATH']}"
79+ Example.all.each do |example|
80+ say example.dir
81+ Dir.chdir example.dir do
82+ system 'bash test.sh >/dev/null 2>&1'
83+ end
84+ end
85+ end
86+
7387help "Append the content of bashly.yml to all example READMEs"
74- action :examples do
75- # Disable color output (for the color examples)
88+ action :readme do
7689 ENV['NO_COLOR']='1'
7790
7891 # Patch the PATH to allow the extensible example to run properly
@@ -83,5 +96,7 @@ action :examples do
8396 end
8497end
8598
99+ endcommand
100+
86101require_relative 'helpers/release'
87102require './debug.rb' if File.exist? 'debug.rb'
Original file line number Diff line number Diff line change @@ -81,13 +81,11 @@ usage: download SOURCE [OPTIONS]
8181download - Sample minimal application with custom strings
8282
8383== Usage ==
84-
8584 download SOURCE [OPTIONS]
8685 download --help | -h
8786 download --version | -v
8887
8988== Options ==
90-
9189 --help, -h
9290 Show this helpful help
9391
@@ -98,7 +96,6 @@ download - Sample minimal application with custom strings
9896 Target directory
9997
10098== Arguments ==
101-
10299 SOURCE
103100 URL to download from
104101
You can’t perform that action at this time.
0 commit comments