bashly 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bashly/cli.rb +9 -9
- data/lib/bashly/commands/generate.rb +4 -2
- data/lib/bashly/concerns/renderable.rb +2 -2
- data/lib/bashly/libraries/settings/settings.yml +58 -8
- data/lib/bashly/script/dependency.rb +1 -1
- data/lib/bashly/script/introspection/commands.rb +5 -0
- data/lib/bashly/script/wrapper.rb +1 -1
- data/lib/bashly/settings.rb +42 -1
- data/lib/bashly/version.rb +1 -1
- data/lib/bashly/views/command/default_script.gtx +7 -4
- data/lib/bashly/views/command/dependencies_filter.gtx +6 -10
- data/lib/bashly/views/command/environment_variables_filter.gtx +4 -2
- data/lib/bashly/views/command/globals.gtx +29 -0
- data/lib/bashly/views/command/initialize.gtx +2 -0
- data/lib/bashly/views/command/inspect_args.gtx +26 -17
- data/lib/bashly/views/command/master_script.gtx +1 -1
- data/lib/bashly/views/command/parse_requirements_while.gtx +1 -1
- data/lib/bashly/views/command/required_args_filter.gtx +2 -1
- data/lib/bashly/views/command/run.gtx +2 -9
- data/lib/bashly/views/dependency/filter.gtx +14 -0
- data/lib/bashly/views/variable/definition.gtx +6 -6
- data/lib/bashly/views/wrapper/header.gtx +4 -2
- metadata +23 -36
- data/lib/bashly/views/command/default_root_script.gtx +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7187087fc2f921c6631e901db4a6a1e4af476e870bd272b4fa11c1f6650a29
|
4
|
+
data.tar.gz: 33dc09b9df4a807cb1fdae1538eced45214e5d029f25b8ed4ca40c2760210fb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
13
|
-
runner.route 'preview',
|
14
|
-
runner.route 'validate',
|
15
|
-
runner.route
|
16
|
-
runner.route 'add',
|
17
|
-
runner.route 'doc',
|
18
|
-
runner.route 'completions',
|
19
|
-
runner.route 'render',
|
20
|
-
runner.route '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
|
-
|
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(:
|
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}"
|
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.
|
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: ~
|
@@ -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
|
data/lib/bashly/settings.rb
CHANGED
@@ -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)
|
data/lib/bashly/version.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
> echo "#
|
2
|
-
> echo "#
|
3
|
-
> echo "# you
|
4
|
-
>
|
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
|
-
|
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
|
-
|
6
|
-
|
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 @@
|
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
>
|
27
|
-
>
|
28
|
-
>
|
29
|
-
>
|
30
|
-
>
|
31
|
-
>
|
32
|
-
>
|
33
|
-
>
|
34
|
-
>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
>
|
39
|
-
>
|
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
|
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
|
@@ -1,22 +1,15 @@
|
|
1
1
|
= view_marker
|
2
2
|
|
3
3
|
> run() {
|
4
|
-
> declare -A args=()
|
5
|
-
> declare -A deps=()
|
6
|
-
> declare -a other_args=()
|
7
|
-
> declare -a env_var_names=()
|
8
|
-
> declare -a input=()
|
9
|
-
if has_unique_args_or_flags?
|
10
|
-
> declare -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
|
+
>
|
@@ -3,9 +3,9 @@
|
|
3
3
|
case value
|
4
4
|
when Array
|
5
5
|
if value.empty?
|
6
|
-
> declare -a {{ name }}=()
|
6
|
+
> declare -g -a {{ name }}=()
|
7
7
|
else
|
8
|
-
> declare -a {{ name }}=(
|
8
|
+
> declare -g -a {{ name }}=(
|
9
9
|
value.each do |v|
|
10
10
|
> "{{ v }}"
|
11
11
|
end
|
@@ -13,16 +13,16 @@ when Array
|
|
13
13
|
end
|
14
14
|
when Hash
|
15
15
|
if value.empty?
|
16
|
-
> declare -A {{ name }}=()
|
16
|
+
> declare -g -A {{ name }}=()
|
17
17
|
else
|
18
|
-
> declare -A {{ name }}=(
|
18
|
+
> declare -g -A {{ name }}=(
|
19
19
|
value.each do |k, v|
|
20
20
|
> ["{{ k }}"]="{{ v }}"
|
21
21
|
end
|
22
22
|
> )
|
23
23
|
end
|
24
24
|
when String, NilClass
|
25
|
-
> {{ name }}="{{ value }}"
|
25
|
+
> declare -g {{ name }}="{{ value }}"
|
26
26
|
else
|
27
|
-
> {{ name }}={{ value }}
|
27
|
+
> declare -g {{ name }}={{ value }}
|
28
28
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
> #!/usr/bin/env bash
|
2
|
-
|
3
|
-
> #
|
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.
|
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
|
+
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|
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
|
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:
|
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:
|
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.
|
367
|
+
rubygems_version: 3.5.23
|
381
368
|
signing_key:
|
382
369
|
specification_version: 4
|
383
370
|
summary: Bash Command Line Tool Generator
|