bashly 1.2.6 → 1.2.8
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 +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 +59 -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 +47 -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 +1 -2
- data/lib/bashly/views/command/inspect_args.gtx +26 -17
- data/lib/bashly/views/command/master_script.gtx +11 -4
- 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 +4 -9
- data/lib/bashly/views/dependency/filter.gtx +14 -0
- data/lib/bashly/views/wrapper/header.gtx +4 -2
- metadata +23 -39
- 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: 8e0ea93f1ae2d4de7347c78c66eded0c3af9a815e444efbe6450292d5808e1cd
|
4
|
+
data.tar.gz: f301168efb623543d51e26e433ac0935e874e1d70b5b59e9c0300e451e3e4fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ebcf92ca566a54989af2fdf2f2ba6e59d87972fc3e958cfd280205b831a77fc27fd9c2a18c2f5b3f89d7e36754a0981b84c400214f8653bfc9dd79d099e8fe7
|
7
|
+
data.tar.gz: 82a22bd78ed9e19d3efc2d519da526943ec38a4c4cd0456779d2bde1fc452f007fe9363a1e9fc44753d6724df0a0a1ddd615fbeebc00504846cbe6171e8934d8
|
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,44 @@ 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
|
+
enable_sourcing: development
|
114
|
+
|
115
|
+
|
116
|
+
#-------------------------------------------------------------------------------
|
117
|
+
# SCRIPTING OPTIONS
|
118
|
+
#-------------------------------------------------------------------------------
|
119
|
+
|
120
|
+
# These are the public global variables available for use in your partial
|
121
|
+
# scripts. Adding a new name here will create a reference variable using
|
122
|
+
# `declare -gn`, allowing you to access the original variable under the new
|
123
|
+
# name in addition to its original name.
|
124
|
+
var_aliases:
|
125
|
+
args: ~
|
126
|
+
other_args: ~
|
127
|
+
deps: ~
|
128
|
+
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,13 @@ 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_sourcing,
|
17
|
+
:enable_view_markers,
|
11
18
|
:lib_dir,
|
12
19
|
:partials_extension,
|
13
20
|
:private_reveal_key,
|
@@ -16,7 +23,8 @@ module Bashly
|
|
16
23
|
:strict,
|
17
24
|
:tab_indent,
|
18
25
|
:target_dir,
|
19
|
-
:usage_colors
|
26
|
+
:usage_colors,
|
27
|
+
:var_aliases
|
20
28
|
)
|
21
29
|
|
22
30
|
def commands_dir
|
@@ -35,6 +43,40 @@ module Bashly
|
|
35
43
|
@config_path ||= get(:config_path) % { source_dir: source_dir }
|
36
44
|
end
|
37
45
|
|
46
|
+
def enabled?(feature)
|
47
|
+
send(:"enable_#{feature}") == 'always' ||
|
48
|
+
(send(:"enable_#{feature}") == 'production' && production?) ||
|
49
|
+
(send(:"enable_#{feature}") == 'development' && !production?)
|
50
|
+
end
|
51
|
+
|
52
|
+
def enable_bash3_bouncer
|
53
|
+
@enable_bash3_bouncer ||= get :enable_bash3_bouncer
|
54
|
+
end
|
55
|
+
|
56
|
+
def enable_deps_array
|
57
|
+
@enable_deps_array ||= get :enable_deps_array
|
58
|
+
end
|
59
|
+
|
60
|
+
def enable_env_var_names_array
|
61
|
+
@enable_env_var_names_array ||= get :enable_env_var_names_array
|
62
|
+
end
|
63
|
+
|
64
|
+
def enable_header_comment
|
65
|
+
@enable_header_comment ||= get :enable_header_comment
|
66
|
+
end
|
67
|
+
|
68
|
+
def enable_inspect_args
|
69
|
+
@enable_inspect_args ||= get :enable_inspect_args
|
70
|
+
end
|
71
|
+
|
72
|
+
def enable_sourcing
|
73
|
+
@enable_sourcing ||= get :enable_sourcing
|
74
|
+
end
|
75
|
+
|
76
|
+
def enable_view_markers
|
77
|
+
@enable_view_markers ||= get :enable_view_markers
|
78
|
+
end
|
79
|
+
|
38
80
|
def env
|
39
81
|
@env ||= get(:env)&.to_sym
|
40
82
|
end
|
@@ -97,6 +139,10 @@ module Bashly
|
|
97
139
|
@usage_colors ||= get :usage_colors
|
98
140
|
end
|
99
141
|
|
142
|
+
def var_aliases
|
143
|
+
@var_aliases ||= get :var_aliases
|
144
|
+
end
|
145
|
+
|
100
146
|
private
|
101
147
|
|
102
148
|
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
|
+
> declare -g long_usage=''
|
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
|
@@ -13,6 +13,13 @@
|
|
13
13
|
= render :run
|
14
14
|
|
15
15
|
>
|
16
|
-
|
17
|
-
>
|
18
|
-
>
|
16
|
+
if Settings.enabled? :sourcing
|
17
|
+
> if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
18
|
+
> initialize
|
19
|
+
> run "$@"
|
20
|
+
> fi
|
21
|
+
else
|
22
|
+
> initialize
|
23
|
+
> run "$@"
|
24
|
+
end
|
25
|
+
>
|
@@ -1,22 +1,17 @@
|
|
1
1
|
= view_marker
|
2
2
|
|
3
3
|
> run() {
|
4
|
-
|
5
|
-
>
|
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
|
4
|
+
= render(:globals).indent(2)
|
5
|
+
>
|
12
6
|
> normalize_input "$@"
|
13
7
|
> parse_requirements "${input[@]}"
|
8
|
+
|
14
9
|
if user_file_exist?('before')
|
15
10
|
> before_hook
|
16
11
|
end
|
12
|
+
|
17
13
|
>
|
18
14
|
> case "$action" in
|
19
|
-
|
20
15
|
deep_commands.each do |command|
|
21
16
|
> "{{ command.action_name }}") {{ command.function_name }}_command ;;
|
22
17
|
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
|
-
|
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,13 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: colsole
|
@@ -34,16 +33,22 @@ dependencies:
|
|
34
33
|
name: completely
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
36
35
|
requirements:
|
37
|
-
- - "
|
36
|
+
- - ">="
|
38
37
|
- !ruby/object:Gem::Version
|
39
38
|
version: 0.6.1
|
39
|
+
- - "<"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0.8'
|
40
42
|
type: :runtime
|
41
43
|
prerelease: false
|
42
44
|
version_requirements: !ruby/object:Gem::Requirement
|
43
45
|
requirements:
|
44
|
-
- - "
|
46
|
+
- - ">="
|
45
47
|
- !ruby/object:Gem::Version
|
46
48
|
version: 0.6.1
|
49
|
+
- - "<"
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0.8'
|
47
52
|
- !ruby/object:Gem::Dependency
|
48
53
|
name: filewatcher
|
49
54
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,70 +69,70 @@ dependencies:
|
|
64
69
|
requirements:
|
65
70
|
- - "~>"
|
66
71
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
72
|
+
version: 0.1.1
|
68
73
|
type: :runtime
|
69
74
|
prerelease: false
|
70
75
|
version_requirements: !ruby/object:Gem::Requirement
|
71
76
|
requirements:
|
72
77
|
- - "~>"
|
73
78
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
79
|
+
version: 0.1.1
|
75
80
|
- !ruby/object:Gem::Dependency
|
76
81
|
name: lp
|
77
82
|
requirement: !ruby/object:Gem::Requirement
|
78
83
|
requirements:
|
79
84
|
- - "~>"
|
80
85
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
86
|
+
version: 0.2.0
|
82
87
|
type: :runtime
|
83
88
|
prerelease: false
|
84
89
|
version_requirements: !ruby/object:Gem::Requirement
|
85
90
|
requirements:
|
86
91
|
- - "~>"
|
87
92
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
93
|
+
version: 0.2.0
|
89
94
|
- !ruby/object:Gem::Dependency
|
90
95
|
name: mister_bin
|
91
96
|
requirement: !ruby/object:Gem::Requirement
|
92
97
|
requirements:
|
93
98
|
- - "~>"
|
94
99
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
100
|
+
version: 0.8.1
|
96
101
|
type: :runtime
|
97
102
|
prerelease: false
|
98
103
|
version_requirements: !ruby/object:Gem::Requirement
|
99
104
|
requirements:
|
100
105
|
- - "~>"
|
101
106
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
107
|
+
version: 0.8.1
|
103
108
|
- !ruby/object:Gem::Dependency
|
104
109
|
name: requires
|
105
110
|
requirement: !ruby/object:Gem::Requirement
|
106
111
|
requirements:
|
107
112
|
- - "~>"
|
108
113
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.1
|
114
|
+
version: '1.1'
|
110
115
|
type: :runtime
|
111
116
|
prerelease: false
|
112
117
|
version_requirements: !ruby/object:Gem::Requirement
|
113
118
|
requirements:
|
114
119
|
- - "~>"
|
115
120
|
- !ruby/object:Gem::Version
|
116
|
-
version: 1.1
|
121
|
+
version: '1.1'
|
117
122
|
- !ruby/object:Gem::Dependency
|
118
123
|
name: tty-markdown
|
119
124
|
requirement: !ruby/object:Gem::Requirement
|
120
125
|
requirements:
|
121
126
|
- - "~>"
|
122
127
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
128
|
+
version: 0.7.2
|
124
129
|
type: :runtime
|
125
130
|
prerelease: false
|
126
131
|
version_requirements: !ruby/object:Gem::Requirement
|
127
132
|
requirements:
|
128
133
|
- - "~>"
|
129
134
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
135
|
+
version: 0.7.2
|
131
136
|
- !ruby/object:Gem::Dependency
|
132
137
|
name: logger
|
133
138
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,26 +173,6 @@ dependencies:
|
|
168
173
|
- - "<"
|
169
174
|
- !ruby/object:Gem::Version
|
170
175
|
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
176
|
description: Generate bash command line tools using YAML configuration
|
192
177
|
email: db@dannyben.com
|
193
178
|
executables:
|
@@ -299,7 +284,6 @@ files:
|
|
299
284
|
- lib/bashly/views/command/command_filter.gtx
|
300
285
|
- lib/bashly/views/command/command_functions.gtx
|
301
286
|
- lib/bashly/views/command/default_assignments.gtx
|
302
|
-
- lib/bashly/views/command/default_root_script.gtx
|
303
287
|
- lib/bashly/views/command/default_script.gtx
|
304
288
|
- lib/bashly/views/command/dependencies_filter.gtx
|
305
289
|
- lib/bashly/views/command/environment_variables_default.gtx
|
@@ -308,6 +292,7 @@ files:
|
|
308
292
|
- lib/bashly/views/command/fixed_flags_filter.gtx
|
309
293
|
- lib/bashly/views/command/footer.gtx
|
310
294
|
- lib/bashly/views/command/function.gtx
|
295
|
+
- lib/bashly/views/command/globals.gtx
|
311
296
|
- lib/bashly/views/command/initialize.gtx
|
312
297
|
- lib/bashly/views/command/inspect_args.gtx
|
313
298
|
- lib/bashly/views/command/long_usage.gtx
|
@@ -340,6 +325,7 @@ files:
|
|
340
325
|
- lib/bashly/views/command/variables.gtx
|
341
326
|
- lib/bashly/views/command/version_command.gtx
|
342
327
|
- lib/bashly/views/command/whitelist_filter.gtx
|
328
|
+
- lib/bashly/views/dependency/filter.gtx
|
343
329
|
- lib/bashly/views/environment_variable/usage.gtx
|
344
330
|
- lib/bashly/views/environment_variable/validations.gtx
|
345
331
|
- lib/bashly/views/flag/case.gtx
|
@@ -362,7 +348,6 @@ metadata:
|
|
362
348
|
homepage_uri: https://bashly.dannyb.co/
|
363
349
|
source_code_uri: https://github.com/DannyBen/bashly
|
364
350
|
rubygems_mfa_required: 'true'
|
365
|
-
post_install_message:
|
366
351
|
rdoc_options: []
|
367
352
|
require_paths:
|
368
353
|
- lib
|
@@ -377,8 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
362
|
- !ruby/object:Gem::Version
|
378
363
|
version: '0'
|
379
364
|
requirements: []
|
380
|
-
rubygems_version: 3.
|
381
|
-
signing_key:
|
365
|
+
rubygems_version: 3.6.2
|
382
366
|
specification_version: 4
|
383
367
|
summary: Bash Command Line Tool Generator
|
384
368
|
test_files: []
|