bashly 1.0.7 → 1.1.0
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/README.md +2 -1
- data/lib/bashly/cli.rb +1 -0
- data/lib/bashly/commands/completions.rb +1 -1
- data/lib/bashly/commands/render.rb +103 -0
- data/lib/bashly/concerns/validation_helpers.rb +1 -1
- data/lib/bashly/config.rb +0 -2
- data/lib/bashly/extensions/string.rb +17 -1
- data/lib/bashly/extensions/yaml.rb +4 -1
- data/lib/bashly/libraries/config/config.sh +74 -94
- data/lib/bashly/libraries/ini/ini.sh +110 -0
- data/lib/bashly/libraries/libraries.yml +40 -1
- data/lib/bashly/libraries/render/mandoc/README.md +45 -0
- data/lib/bashly/libraries/render/mandoc/mandoc.gtx +196 -0
- data/lib/bashly/libraries/render/mandoc/render.rb +34 -0
- data/lib/bashly/libraries/render/mandoc/summary.txt +1 -0
- data/lib/bashly/libraries/render/markdown/README.md +42 -0
- data/lib/bashly/libraries/render/markdown/markdown.gtx +186 -0
- data/lib/bashly/libraries/render/markdown/render.rb +23 -0
- data/lib/bashly/libraries/render/markdown/summary.txt +1 -0
- data/lib/bashly/refinements/compose_refinements.rb +0 -2
- data/lib/bashly/render_context.rb +30 -0
- data/lib/bashly/render_source.rb +71 -0
- data/lib/bashly/script/base.rb +2 -1
- data/lib/bashly/script/command.rb +17 -0
- data/lib/bashly/version.rb +1 -1
- data/lib/bashly/views/command/dependencies_filter.gtx +1 -1
- data/lib/bashly/views/command/footer.gtx +1 -1
- data/lib/bashly/views/command/parse_requirements_while.gtx +1 -1
- data/lib/bashly/views/command/usage.gtx +2 -2
- data/lib/bashly/views/command/usage_commands.gtx +2 -2
- data/lib/bashly.rb +56 -11
- metadata +41 -9
data/lib/bashly.rb
CHANGED
@@ -1,16 +1,61 @@
|
|
1
|
-
require 'requires'
|
2
|
-
|
3
1
|
if ENV['BYEBUG']
|
4
2
|
require 'byebug'
|
5
3
|
require 'lp'
|
6
4
|
end
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
require 'bashly/extensions/array'
|
7
|
+
require 'bashly/extensions/file'
|
8
|
+
require 'bashly/extensions/string'
|
9
|
+
require 'bashly/extensions/yaml'
|
10
|
+
require 'bashly/exceptions'
|
11
|
+
|
12
|
+
module Bashly
|
13
|
+
autoload :CLI, 'bashly/cli'
|
14
|
+
autoload :Config, 'bashly/config'
|
15
|
+
autoload :ConfigValidator, 'bashly/config_validator'
|
16
|
+
autoload :Library, 'bashly/library'
|
17
|
+
autoload :LibrarySource, 'bashly/library_source'
|
18
|
+
autoload :MessageStrings, 'bashly/message_strings'
|
19
|
+
autoload :RenderContext, 'bashly/render_context'
|
20
|
+
autoload :RenderSource, 'bashly/render_source'
|
21
|
+
autoload :VERSION, 'bashly/version'
|
22
|
+
|
23
|
+
autoload :AssetHelper, 'bashly/concerns/asset_helper'
|
24
|
+
autoload :Completions, 'bashly/concerns/completions'
|
25
|
+
autoload :ComposeRefinements, 'bashly/refinements/compose_refinements'
|
26
|
+
autoload :Renderable, 'bashly/concerns/renderable'
|
27
|
+
autoload :Settings, 'bashly/settings'
|
28
|
+
autoload :ValidationHelpers, 'bashly/concerns/validation_helpers'
|
29
|
+
|
30
|
+
module Script
|
31
|
+
autoload :Argument, 'bashly/script/argument'
|
32
|
+
autoload :Base, 'bashly/script/base'
|
33
|
+
autoload :CatchAll, 'bashly/script/catch_all'
|
34
|
+
autoload :Command, 'bashly/script/command'
|
35
|
+
autoload :Dependency, 'bashly/script/dependency'
|
36
|
+
autoload :EnvironmentVariable, 'bashly/script/environment_variable'
|
37
|
+
autoload :Flag, 'bashly/script/flag'
|
38
|
+
autoload :Wrapper, 'bashly/script/wrapper'
|
39
|
+
end
|
40
|
+
|
41
|
+
module Commands
|
42
|
+
autoload :Add, 'bashly/commands/add'
|
43
|
+
autoload :Base, 'bashly/commands/base'
|
44
|
+
autoload :Completions, 'bashly/commands/completions'
|
45
|
+
autoload :Doc, 'bashly/commands/doc'
|
46
|
+
autoload :Generate, 'bashly/commands/generate'
|
47
|
+
autoload :Init, 'bashly/commands/init'
|
48
|
+
autoload :Preview, 'bashly/commands/preview'
|
49
|
+
autoload :Render, 'bashly/commands/render'
|
50
|
+
autoload :Shell, 'bashly/commands/shell'
|
51
|
+
autoload :Validate, 'bashly/commands/validate'
|
52
|
+
end
|
53
|
+
|
54
|
+
module Libraries
|
55
|
+
autoload :Base, 'bashly/libraries/base'
|
56
|
+
autoload :CompletionsFunction, 'bashly/libraries/completions/completions_function'
|
57
|
+
autoload :CompletionsScript, 'bashly/libraries/completions/completions_script'
|
58
|
+
autoload :CompletionsYAML, 'bashly/libraries/completions/completions_yaml'
|
59
|
+
autoload :Help, 'bashly/libraries/help/help'
|
60
|
+
end
|
61
|
+
end
|
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.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -101,19 +101,39 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0.7'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: tty-markdown
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '0.7'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '0.7'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: psych
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 3.3.2
|
124
|
+
- - "<"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '7'
|
127
|
+
type: :runtime
|
128
|
+
prerelease: false
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 3.3.2
|
134
|
+
- - "<"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '7'
|
117
137
|
description: Generate bash command line tools using YAML configuration
|
118
138
|
email: db@dannyben.com
|
119
139
|
executables:
|
@@ -132,6 +152,7 @@ files:
|
|
132
152
|
- lib/bashly/commands/generate.rb
|
133
153
|
- lib/bashly/commands/init.rb
|
134
154
|
- lib/bashly/commands/preview.rb
|
155
|
+
- lib/bashly/commands/render.rb
|
135
156
|
- lib/bashly/commands/shell.rb
|
136
157
|
- lib/bashly/commands/validate.rb
|
137
158
|
- lib/bashly/completions/README.md
|
@@ -164,8 +185,17 @@ files:
|
|
164
185
|
- lib/bashly/libraries/hooks/after.sh
|
165
186
|
- lib/bashly/libraries/hooks/before.sh
|
166
187
|
- lib/bashly/libraries/hooks/initialize.sh
|
188
|
+
- lib/bashly/libraries/ini/ini.sh
|
167
189
|
- lib/bashly/libraries/lib/sample_function.sh
|
168
190
|
- lib/bashly/libraries/libraries.yml
|
191
|
+
- lib/bashly/libraries/render/mandoc/README.md
|
192
|
+
- lib/bashly/libraries/render/mandoc/mandoc.gtx
|
193
|
+
- lib/bashly/libraries/render/mandoc/render.rb
|
194
|
+
- lib/bashly/libraries/render/mandoc/summary.txt
|
195
|
+
- lib/bashly/libraries/render/markdown/README.md
|
196
|
+
- lib/bashly/libraries/render/markdown/markdown.gtx
|
197
|
+
- lib/bashly/libraries/render/markdown/render.rb
|
198
|
+
- lib/bashly/libraries/render/markdown/summary.txt
|
169
199
|
- lib/bashly/libraries/settings/settings.yml
|
170
200
|
- lib/bashly/libraries/strings/strings.yml
|
171
201
|
- lib/bashly/libraries/test/approvals.bash
|
@@ -179,6 +209,8 @@ files:
|
|
179
209
|
- lib/bashly/library_source.rb
|
180
210
|
- lib/bashly/message_strings.rb
|
181
211
|
- lib/bashly/refinements/compose_refinements.rb
|
212
|
+
- lib/bashly/render_context.rb
|
213
|
+
- lib/bashly/render_source.rb
|
182
214
|
- lib/bashly/script/argument.rb
|
183
215
|
- lib/bashly/script/base.rb
|
184
216
|
- lib/bashly/script/catch_all.rb
|
@@ -253,7 +285,7 @@ metadata:
|
|
253
285
|
homepage_uri: https://bashly.dannyb.co/
|
254
286
|
source_code_uri: https://github.com/DannyBen/bashly
|
255
287
|
rubygems_mfa_required: 'true'
|
256
|
-
post_install_message:
|
288
|
+
post_install_message:
|
257
289
|
rdoc_options: []
|
258
290
|
require_paths:
|
259
291
|
- lib
|
@@ -268,8 +300,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
300
|
- !ruby/object:Gem::Version
|
269
301
|
version: '0'
|
270
302
|
requirements: []
|
271
|
-
rubygems_version: 3.
|
272
|
-
signing_key:
|
303
|
+
rubygems_version: 3.3.26
|
304
|
+
signing_key:
|
273
305
|
specification_version: 4
|
274
306
|
summary: Bash Command Line Tool Generator
|
275
307
|
test_files: []
|