File tree Expand file tree Collapse file tree 7 files changed +36
-1
lines changed
fixtures/workspaces/var-order Expand file tree Collapse file tree 7 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 66
77if root_command?
88 >
9- = render(:variables).indent(2)
109 = render(:environment_variables_default).indent 2
10+ = render(:variables).indent(2)
1111end
1212
1313if user_file_exist?('initialize')
Original file line number Diff line number Diff line change 1+ + bundle exec bashly generate
2+ creating user files in src
3+ skipped src/root_command.sh (exists)
4+ created ./cli
5+ run ./cli --help to test your bash script
6+ + ./cli
7+ args: none
8+
9+ environment variables:
10+ - $CLI_CONFIG_FILE = config.yaml
11+ $config_file == $CLI_CONFIG_FILE == config.yaml
Original file line number Diff line number Diff line change 1+ cli
Original file line number Diff line number Diff line change 1+ This fixture ensures that environment variables are declared and populated
2+ begore variables defined in bashly.yml, to allow using the values from them
3+ in the variables.
Original file line number Diff line number Diff line change 1+ name : cli
2+ help : Ensure env var / var order
3+ version : 0.1.0
4+
5+ environment_variables :
6+ - name : cli_config_file
7+ help : Path to config file
8+ default : config.yaml
9+
10+ variables :
11+ - name : config_file
12+ value : $CLI_CONFIG_FILE
Original file line number Diff line number Diff line change 1+ inspect_args
2+ echo " \$ config_file == \$ CLI_CONFIG_FILE == $config_file "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -x
4+
5+ bundle exec bashly generate
6+ ./cli
You can’t perform that action at this time.
0 commit comments