bashly 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99f485c3101793ea955bdf125a42278f0e3a81af69e6cf9e4f51e07c4179ce04
4
- data.tar.gz: ca309bd6179a11a15423ee6e442e587321347e5142706ce66c5861e22e3394a8
3
+ metadata.gz: fa7187087fc2f921c6631e901db4a6a1e4af476e870bd272b4fa11c1f6650a29
4
+ data.tar.gz: 33dc09b9df4a807cb1fdae1538eced45214e5d029f25b8ed4ca40c2760210fb8
5
5
  SHA512:
6
- metadata.gz: fc5a0d81b08eef9c029c88fa6bb118c1f9e8154e52e86f113c8d2ae74c170f768fb48d310128df64b67c00e4c66855886ca1d57635c82118ff5c4737d1eaea29
7
- data.tar.gz: 61c451a16352dd7b3ba28fcb6f2209b980eb5ff416d8656f3b0db802e0e5cea2b20334102e2a73eefc6f2e06b72059e1dfae80deaeee106484fc6e558d79fb48
6
+ metadata.gz: 44d91f1ab44daa047bf40d2a22c4e422cdba92d884bfb27bed4e6749156b66fdd6fd54465a64f72a3c18bf5fa691daca3d60ead18b91e22e94096c38f655dbed
7
+ data.tar.gz: 00d6f327d759e79ec2856858f3f3a8db16ce91fa0eaa87d1336870b1ae3e776d70069d33c4dc2c6afe8c0544fadadd7401111463fde0f69ac6f6c507ae537289
data/lib/bashly/cli.rb CHANGED
@@ -9,15 +9,15 @@ module Bashly
9
9
  header: 'Bashly - Bash CLI Generator',
10
10
  footer: "Help: m`bashly COMMAND --help`\nDocs: bu`https://bashly.dannyb.co`"
11
11
 
12
- runner.route 'init', to: Commands::Init
13
- runner.route 'preview', to: Commands::Preview
14
- runner.route 'validate', to: Commands::Validate
15
- runner.route 'generate', to: Commands::Generate
16
- runner.route 'add', to: Commands::Add
17
- runner.route 'doc', to: Commands::Doc
18
- runner.route 'completions', to: Commands::Completions
19
- runner.route 'render', to: Commands::Render
20
- runner.route 'shell', to: Commands::Shell unless ENV['BASHLY_SHELL']
12
+ runner.route 'init', to: Commands::Init
13
+ runner.route 'preview', to: Commands::Preview
14
+ runner.route 'validate', to: Commands::Validate
15
+ runner.route %w[generate build], to: Commands::Generate
16
+ runner.route 'add', to: Commands::Add
17
+ runner.route 'doc', to: Commands::Doc
18
+ runner.route 'completions', to: Commands::Completions
19
+ runner.route 'render', to: Commands::Render
20
+ runner.route 'shell', to: Commands::Shell unless ENV['BASHLY_SHELL']
21
21
 
22
22
  runner
23
23
  end
@@ -3,7 +3,8 @@ require 'filewatcher'
3
3
  module Bashly
4
4
  module Commands
5
5
  class Generate < Base
6
- help 'Generate the bash script and required files'
6
+ summary "Generate the bash script and required files"
7
+ help "This command is also aliased as 'build'"
7
8
 
8
9
  usage 'bashly generate [options]'
9
10
  usage 'bashly generate (-h|--help)'
@@ -22,6 +23,7 @@ module Bashly
22
23
 
23
24
  example 'bashly generate --force'
24
25
  example 'bashly generate --wrap my_function'
26
+ example 'bashly build --watch --env production'
25
27
  example 'bashly g -uw'
26
28
 
27
29
  attr_reader :watching
@@ -131,7 +133,7 @@ module Bashly
131
133
  end
132
134
 
133
135
  def create_root_command_file
134
- create_file "#{Settings.source_dir}/#{command.filename}", command.render(:default_root_script)
136
+ create_file "#{Settings.source_dir}/#{command.filename}", command.render(:default_script)
135
137
  end
136
138
 
137
139
  def create_all_command_files
@@ -16,7 +16,7 @@ module Bashly
16
16
  # Outputs a comment that describes the view unless in production mode
17
17
  def view_marker(id = nil)
18
18
  id ||= ":#{caller_locations(1..1).first.path}"
19
- "# #{id}" unless Settings.production?
19
+ "# #{id}" if Settings.enabled? :view_markers
20
20
  end
21
21
 
22
22
  # Reads a file from the userspace (Settings.source_dir) and returns
@@ -32,7 +32,7 @@ module Bashly
32
32
  ''
33
33
  end
34
34
 
35
- Settings.production? ? content : "#{view_marker path}\n#{content}"
35
+ Settings.enabled?(:view_markers) ? "#{view_marker path}\n#{content}" : content
36
36
  end
37
37
 
38
38
  # Returns a path to a file in the user's source_dir. The file argument
@@ -9,6 +9,11 @@
9
9
  # If you wish to change the path to this file, set the environment variable
10
10
  # BASHLY_SETTINGS_PATH.
11
11
 
12
+
13
+ #-------------------------------------------------------------------------------
14
+ # PATH OPTIONS
15
+ #-------------------------------------------------------------------------------
16
+
12
17
  # The path containing the bashly source files
13
18
  source_dir: src
14
19
 
@@ -27,6 +32,14 @@ lib_dir: lib
27
32
  # directory, and each command will get its own subdirectory
28
33
  commands_dir: ~
29
34
 
35
+ # The extension to use when reading/writing partial script snippets
36
+ partials_extension: sh
37
+
38
+
39
+ #-------------------------------------------------------------------------------
40
+ # FORMAT OPTIONS
41
+ #-------------------------------------------------------------------------------
42
+
30
43
  # Configure the bash options that will be added to the initialize function:
31
44
  # strict: true Bash strict mode (set -euo pipefail)
32
45
  # strict: false Only exit on errors (set -e)
@@ -38,6 +51,11 @@ strict: false
38
51
  # (every 2 leading spaces will be converted to a tab character)
39
52
  tab_indent: false
40
53
 
54
+
55
+ #-------------------------------------------------------------------------------
56
+ # INTERFACE OPTIONS
57
+ #-------------------------------------------------------------------------------
58
+
41
59
  # When true, the generated script will consider any argument in the form of
42
60
  # `-abc` as if it is `-a -b -c`.
43
61
  compact_short_flags: true
@@ -47,14 +65,6 @@ compact_short_flags: true
47
65
  # respectively.
48
66
  conjoined_flag_args: true
49
67
 
50
- # Set to 'production' or 'development':
51
- # env: production Generate a smaller script, without file markers
52
- # env: development Generate with file markers
53
- env: development
54
-
55
- # The extension to use when reading/writing partial script snippets
56
- partials_extension: sh
57
-
58
68
  # Show command examples (if any) whenever the user does not provide the
59
69
  # required arguments
60
70
  show_examples_on_error: false
@@ -75,3 +85,43 @@ usage_colors:
75
85
  arg: ~
76
86
  flag: ~
77
87
  environment_variable: ~
88
+
89
+
90
+ #-------------------------------------------------------------------------------
91
+ # FEATURE TOGGLES
92
+ #-------------------------------------------------------------------------------
93
+
94
+ # Set to 'production' or 'development'.
95
+ # Determines which features are enabled in the rendered script.
96
+ # Use the `enable_*` options below to adjust settings for each environment.
97
+ # It is recommended to leave this set to 'development' and run
98
+ # `bashly generate --production` when the slimmer production script is needed.
99
+ env: development
100
+
101
+ # Tweak the script output by enabling or disabling some script output.
102
+ # These options accept one of the following strings:
103
+ # - production render this feature only when env == production
104
+ # - development render this feature only when env == development
105
+ # - always render this feature in any environment
106
+ # - never do not render this feature
107
+ enable_header_comment: always
108
+ enable_bash3_bouncer: always
109
+ enable_view_markers: development
110
+ enable_inspect_args: development
111
+ enable_deps_array: always
112
+ enable_env_var_names_array: always
113
+
114
+
115
+ #-------------------------------------------------------------------------------
116
+ # SCRIPTING OPTIONS
117
+ #-------------------------------------------------------------------------------
118
+
119
+ # These are the public global variables available for use in your partial
120
+ # scripts. Adding a new name here will create a reference variable using
121
+ # `declare -gn`, allowing you to access the original variable under the new
122
+ # name in addition to its original name.
123
+ var_aliases:
124
+ args: ~
125
+ other_args: ~
126
+ deps: ~
127
+ env_var_names: ~
@@ -1,6 +1,6 @@
1
1
  module Bashly
2
2
  module Script
3
- class Dependency
3
+ class Dependency < Base
4
4
  attr_reader :label, :commands, :help
5
5
 
6
6
  class << self
@@ -2,6 +2,11 @@ module Bashly
2
2
  module Script
3
3
  module Introspection
4
4
  module Commands
5
+ # Returns true if the command or any of its descendants has `catch_all`
6
+ def catch_all_used_anywhere?
7
+ deep_commands(include_self: true).any? { |x| x.catch_all.enabled? }
8
+ end
9
+
5
10
  # Returns a full list of the Command names and aliases combined
6
11
  def command_aliases
7
12
  commands.map(&:aliases).flatten
@@ -40,7 +40,7 @@ module Bashly
40
40
 
41
41
  def default_header
42
42
  result = render 'header'
43
- result += render('bash3_bouncer') unless function_name
43
+ result += render('bash3_bouncer') unless function_name || !Settings.enabled?(:bash3_bouncer)
44
44
  result
45
45
  end
46
46
 
@@ -8,6 +8,12 @@ module Bashly
8
8
  :compact_short_flags,
9
9
  :conjoined_flag_args,
10
10
  :config_path,
11
+ :enable_bash3_bouncer,
12
+ :enable_deps_array,
13
+ :enable_env_var_names_array,
14
+ :enable_header_comment,
15
+ :enable_inspect_args,
16
+ :enable_view_markers,
11
17
  :lib_dir,
12
18
  :partials_extension,
13
19
  :private_reveal_key,
@@ -16,7 +22,8 @@ module Bashly
16
22
  :strict,
17
23
  :tab_indent,
18
24
  :target_dir,
19
- :usage_colors
25
+ :usage_colors,
26
+ :var_aliases
20
27
  )
21
28
 
22
29
  def commands_dir
@@ -35,6 +42,36 @@ module Bashly
35
42
  @config_path ||= get(:config_path) % { source_dir: source_dir }
36
43
  end
37
44
 
45
+ def enabled?(feature)
46
+ send(:"enable_#{feature}") == 'always' ||
47
+ (send(:"enable_#{feature}") == 'production' && production?) ||
48
+ (send(:"enable_#{feature}") == 'development' && !production?)
49
+ end
50
+
51
+ def enable_header_comment
52
+ @enable_header_comment ||= get :enable_header_comment
53
+ end
54
+
55
+ def enable_bash3_bouncer
56
+ @enable_bash3_bouncer ||= get :enable_bash3_bouncer
57
+ end
58
+
59
+ def enable_view_markers
60
+ @enable_view_markers ||= get :enable_view_markers
61
+ end
62
+
63
+ def enable_inspect_args
64
+ @enable_inspect_args ||= get :enable_inspect_args
65
+ end
66
+
67
+ def enable_deps_array
68
+ @enable_deps_array ||= get :enable_deps_array
69
+ end
70
+
71
+ def enable_env_var_names_array
72
+ @enable_env_var_names_array ||= get :enable_env_var_names_array
73
+ end
74
+
38
75
  def env
39
76
  @env ||= get(:env)&.to_sym
40
77
  end
@@ -97,6 +134,10 @@ module Bashly
97
134
  @usage_colors ||= get :usage_colors
98
135
  end
99
136
 
137
+ def var_aliases
138
+ @var_aliases ||= get :var_aliases
139
+ end
140
+
100
141
  private
101
142
 
102
143
  def get(key)
@@ -1,3 +1,3 @@
1
1
  module Bashly
2
- VERSION = '1.2.6'
2
+ VERSION = '1.2.7'
3
3
  end
@@ -1,5 +1,8 @@
1
- > echo "# this file is located in '{{ "#{Settings.source_dir}/#{filename}" }}'"
2
- > echo "# code for '{{ full_name }}' goes here"
3
- > echo "# you can edit it freely and regenerate (it will not be overwritten)"
4
- > inspect_args
1
+ > echo "# This file is located at '{{ "#{Settings.source_dir}/#{filename}" }}'."
2
+ > echo "# It contains the implementation for the '{{ full_name }}' command."
3
+ > echo "# The code you write here will be wrapped by a function named '{{ function_name }}_command()'."
4
+ > echo "# Feel free to edit this file; your changes will persist when regenerating."
5
+ if Settings.enabled? :inspect_args
6
+ > inspect_args
7
+ end
5
8
  >
@@ -1,16 +1,12 @@
1
1
  if dependencies.any?
2
2
  = view_marker
3
3
 
4
+ > missing_deps=
4
5
  dependencies.each do |dependency|
5
- > if command -v {{ dependency.commands.join(' ') }} >/dev/null 2>&1; then
6
- > deps['{{ dependency.label }}']="$(command -v {{ dependency.commands.join(' ') }} | head -n1)"
7
- > else
8
- > printf "{{ strings[:missing_dependency] % { dependency: dependency.name } }}\n" >&2
9
- if dependency.help
10
- > printf "%s\n" "{{ dependency.help.sanitize_for_print }}" >&2
11
- end
12
- > exit 1
13
- > fi
14
- >
6
+ = dependency.render :filter
15
7
  end
8
+
9
+ > if [[ -n $missing_deps ]]; then
10
+ > exit 1
11
+ > fi
16
12
  end
@@ -2,8 +2,10 @@ if environment_variables.any?
2
2
  = view_marker
3
3
  = render(:environment_variables_default)
4
4
 
5
- environment_variables.each do |env_var|
6
- > env_var_names+=("{{ env_var.name.upcase }}")
5
+ if Settings.enabled? :env_var_names_array
6
+ environment_variables.each do |env_var|
7
+ > env_var_names+=("{{ env_var.name.upcase }}")
8
+ end
7
9
  end
8
10
  end
9
11
 
@@ -0,0 +1,29 @@
1
+ = view_marker
2
+
3
+ > declare -g -A args=()
4
+
5
+ if catch_all_used_anywhere?
6
+ > declare -g -a other_args=()
7
+ end
8
+
9
+ if Settings.enabled? :deps_array
10
+ > declare -g -A deps=()
11
+ end
12
+
13
+ if Settings.enabled? :env_var_names_array
14
+ > declare -g -a env_var_names=()
15
+ end
16
+
17
+ > declare -g -a input=()
18
+
19
+ if has_unique_args_or_flags?
20
+ > declare -g -A unique_lookup=()
21
+ end
22
+
23
+ >
24
+ Settings.var_aliases.each do |original, refname|
25
+ if refname
26
+ > declare -gn {{ refname }}={{ original }}
27
+ end
28
+ end
29
+ >
@@ -11,6 +11,8 @@ if root_command?
11
11
  = render(:environment_variables_default).indent 2
12
12
  end
13
13
 
14
+ = render(:globals).indent(2)
15
+
14
16
  if user_file_exist?('initialize')
15
17
  >
16
18
  = load_user_file('initialize').indent 2
@@ -11,6 +11,8 @@
11
11
  > echo args: none
12
12
  > fi
13
13
  >
14
+
15
+ if catch_all_used_anywhere?
14
16
  > if ((${#other_args[@]})); then
15
17
  > echo
16
18
  > echo other_args:
@@ -20,22 +22,29 @@
20
22
  > done
21
23
  > fi
22
24
  >
23
- > if ((${#deps[@]})); then
24
- > readarray -t sorted_keys < <(printf '%s\n' "${!deps[@]}" | sort)
25
- > echo
26
- > echo deps:
27
- > for k in "${sorted_keys[@]}"; do
28
- > echo "- \${deps[$k]} = ${deps[$k]}"
29
- > done
30
- > fi
31
- >
32
- > if ((${#env_var_names[@]})); then
33
- > readarray -t sorted_names < <(printf '%s\n' "${env_var_names[@]}" | sort)
34
- > echo
35
- > echo "environment variables:"
36
- > for k in "${sorted_names[@]}"; do
37
- > echo "- \$$k = ${!k:-}"
38
- > done
39
- > fi
25
+ end
26
+
27
+ if Settings.enabled? :deps_array
28
+ > if ((${#deps[@]})); then
29
+ > readarray -t sorted_keys < <(printf '%s\n' "${!deps[@]}" | sort)
30
+ > echo
31
+ > echo deps:
32
+ > for k in "${sorted_keys[@]}"; do
33
+ > echo "- \${deps[$k]} = ${deps[$k]}"
34
+ > done
35
+ > fi
36
+ >
37
+ end
38
+
39
+ if Settings.enabled? :env_var_names_array
40
+ > if ((${#env_var_names[@]})); then
41
+ > readarray -t sorted_names < <(printf '%s\n' "${env_var_names[@]}" | sort)
42
+ > echo
43
+ > echo "environment variables:"
44
+ > for k in "${sorted_names[@]}"; do
45
+ > echo "- \$$k = ${!k:-}"
46
+ > done
47
+ > fi
48
+ end
40
49
  > }
41
50
  >
@@ -4,7 +4,7 @@
4
4
  = render :version_command
5
5
  = render :usage
6
6
  = render :normalize_input
7
- = render :inspect_args unless Settings.production?
7
+ = render :inspect_args if Settings.enabled? :inspect_args
8
8
  = render :user_lib if user_lib.any?
9
9
  = render :command_functions
10
10
  = render :parse_requirements
@@ -40,4 +40,4 @@ end
40
40
  >
41
41
  > esac
42
42
  > done
43
-
43
+ >
@@ -7,7 +7,8 @@ if required_args.any?
7
7
  = render(:examples_on_error).indent 2
8
8
  > exit 1
9
9
  > fi
10
+ >
10
11
  end
11
12
 
12
13
  >
13
- end
14
+ end
@@ -1,22 +1,15 @@
1
1
  = view_marker
2
2
 
3
3
  > run() {
4
- > declare -g -A args=()
5
- > declare -g -A deps=()
6
- > declare -g -a other_args=()
7
- > declare -g -a env_var_names=()
8
- > declare -g -a input=()
9
- if has_unique_args_or_flags?
10
- > declare -g -A unique_lookup=()
11
- end
12
4
  > normalize_input "$@"
13
5
  > parse_requirements "${input[@]}"
6
+
14
7
  if user_file_exist?('before')
15
8
  > before_hook
16
9
  end
10
+
17
11
  >
18
12
  > case "$action" in
19
-
20
13
  deep_commands.each do |command|
21
14
  > "{{ command.action_name }}") {{ command.function_name }}_command ;;
22
15
  end
@@ -0,0 +1,14 @@
1
+ = view_marker
2
+
3
+ > if ! command -v {{ commands.join(' ') }} >/dev/null 2>&1; then
4
+ > printf "{{ strings[:missing_dependency] % { dependency: name } }}\n" >&2
5
+ if help
6
+ > printf "%s\n\n" "{{ help.sanitize_for_print }}" >&2
7
+ end
8
+ > missing_deps=1
9
+ if Settings.enabled? :deps_array
10
+ > else
11
+ > deps['{{ label }}']="$(command -v {{ commands.join(' ') }} | head -n1)"
12
+ end
13
+ > fi
14
+ >
@@ -1,5 +1,7 @@
1
1
  > #!/usr/bin/env bash
2
- > # This script was generated by bashly {{ Bashly::VERSION }} (https://bashly.dannyb.co)
3
- > # Modifying it manually is not recommended
2
+ if Settings.enabled? :header_comment
3
+ > # This script was generated by bashly {{ Bashly::VERSION }} (https://bashly.dannyb.co)
4
+ > # Modifying it manually is not recommended
5
+ end
4
6
  >
5
7
  >
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bashly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2024-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -34,16 +34,22 @@ dependencies:
34
34
  name: completely
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 0.6.1
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.8'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
49
  version: 0.6.1
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.8'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: filewatcher
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -64,70 +70,70 @@ dependencies:
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: '0.1'
73
+ version: 0.1.1
68
74
  type: :runtime
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: '0.1'
80
+ version: 0.1.1
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: lp
77
83
  requirement: !ruby/object:Gem::Requirement
78
84
  requirements:
79
85
  - - "~>"
80
86
  - !ruby/object:Gem::Version
81
- version: '0.2'
87
+ version: 0.2.0
82
88
  type: :runtime
83
89
  prerelease: false
84
90
  version_requirements: !ruby/object:Gem::Requirement
85
91
  requirements:
86
92
  - - "~>"
87
93
  - !ruby/object:Gem::Version
88
- version: '0.2'
94
+ version: 0.2.0
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: mister_bin
91
97
  requirement: !ruby/object:Gem::Requirement
92
98
  requirements:
93
99
  - - "~>"
94
100
  - !ruby/object:Gem::Version
95
- version: '0.7'
101
+ version: 0.8.1
96
102
  type: :runtime
97
103
  prerelease: false
98
104
  version_requirements: !ruby/object:Gem::Requirement
99
105
  requirements:
100
106
  - - "~>"
101
107
  - !ruby/object:Gem::Version
102
- version: '0.7'
108
+ version: 0.8.1
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: requires
105
111
  requirement: !ruby/object:Gem::Requirement
106
112
  requirements:
107
113
  - - "~>"
108
114
  - !ruby/object:Gem::Version
109
- version: 1.1.0
115
+ version: '1.1'
110
116
  type: :runtime
111
117
  prerelease: false
112
118
  version_requirements: !ruby/object:Gem::Requirement
113
119
  requirements:
114
120
  - - "~>"
115
121
  - !ruby/object:Gem::Version
116
- version: 1.1.0
122
+ version: '1.1'
117
123
  - !ruby/object:Gem::Dependency
118
124
  name: tty-markdown
119
125
  requirement: !ruby/object:Gem::Requirement
120
126
  requirements:
121
127
  - - "~>"
122
128
  - !ruby/object:Gem::Version
123
- version: '0.7'
129
+ version: 0.7.2
124
130
  type: :runtime
125
131
  prerelease: false
126
132
  version_requirements: !ruby/object:Gem::Requirement
127
133
  requirements:
128
134
  - - "~>"
129
135
  - !ruby/object:Gem::Version
130
- version: '0.7'
136
+ version: 0.7.2
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: logger
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -168,26 +174,6 @@ dependencies:
168
174
  - - "<"
169
175
  - !ruby/object:Gem::Version
170
176
  version: '2'
171
- - !ruby/object:Gem::Dependency
172
- name: psych
173
- requirement: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - ">="
176
- - !ruby/object:Gem::Version
177
- version: 3.3.2
178
- - - "<"
179
- - !ruby/object:Gem::Version
180
- version: '7'
181
- type: :runtime
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: 3.3.2
188
- - - "<"
189
- - !ruby/object:Gem::Version
190
- version: '7'
191
177
  description: Generate bash command line tools using YAML configuration
192
178
  email: db@dannyben.com
193
179
  executables:
@@ -299,7 +285,6 @@ files:
299
285
  - lib/bashly/views/command/command_filter.gtx
300
286
  - lib/bashly/views/command/command_functions.gtx
301
287
  - lib/bashly/views/command/default_assignments.gtx
302
- - lib/bashly/views/command/default_root_script.gtx
303
288
  - lib/bashly/views/command/default_script.gtx
304
289
  - lib/bashly/views/command/dependencies_filter.gtx
305
290
  - lib/bashly/views/command/environment_variables_default.gtx
@@ -308,6 +293,7 @@ files:
308
293
  - lib/bashly/views/command/fixed_flags_filter.gtx
309
294
  - lib/bashly/views/command/footer.gtx
310
295
  - lib/bashly/views/command/function.gtx
296
+ - lib/bashly/views/command/globals.gtx
311
297
  - lib/bashly/views/command/initialize.gtx
312
298
  - lib/bashly/views/command/inspect_args.gtx
313
299
  - lib/bashly/views/command/long_usage.gtx
@@ -340,6 +326,7 @@ files:
340
326
  - lib/bashly/views/command/variables.gtx
341
327
  - lib/bashly/views/command/version_command.gtx
342
328
  - lib/bashly/views/command/whitelist_filter.gtx
329
+ - lib/bashly/views/dependency/filter.gtx
343
330
  - lib/bashly/views/environment_variable/usage.gtx
344
331
  - lib/bashly/views/environment_variable/validations.gtx
345
332
  - lib/bashly/views/flag/case.gtx
@@ -377,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
364
  - !ruby/object:Gem::Version
378
365
  version: '0'
379
366
  requirements: []
380
- rubygems_version: 3.5.22
367
+ rubygems_version: 3.5.23
381
368
  signing_key:
382
369
  specification_version: 4
383
370
  summary: Bash Command Line Tool Generator
@@ -1,4 +0,0 @@
1
- > echo "# this file is located in '{{ "#{Settings.source_dir}/#{filename}" }}'"
2
- > echo "# you can edit it freely and regenerate (it will not be overwritten)"
3
- > inspect_args
4
- >