bashly 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/bashly/models/flag.rb +4 -0
- data/lib/bashly/templates/lib/config.sh +1 -1
- data/lib/bashly/templates/strings.yml +1 -1
- data/lib/bashly/version.rb +1 -1
- data/lib/bashly/views/flag/case.erb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14ee3d9cf49b4497ffbb7e374894cc0cfe18e1a1493a58c638cf4fd8896f30e2
|
4
|
+
data.tar.gz: 18dd37e6cfc3efd1f3c3d103f943e5ba8db4b414b2b26bed1bb096728c40cd1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2564fbacc1cd7584e6a0a4da943a25fa70bb51e01a935e18e1c15cb98f3a95e75147f404f858f294df26e18499233e1f82d99f3b344a8464e8ecfccd90c5a0e2
|
7
|
+
data.tar.gz: d638eff5ef4a4d407b558ba153e199ede105fe34b23ee00b7c8961c843cd8e5ef23e21de1396c92b6f3742f9ec7585f02ac182ccd19329b0008f5c2f5b702cc7
|
data/README.md
CHANGED
@@ -25,6 +25,11 @@ Installation
|
|
25
25
|
$ gem install bashly
|
26
26
|
```
|
27
27
|
|
28
|
+
or with Docker:
|
29
|
+
|
30
|
+
```shell
|
31
|
+
$ alias bashly='docker run --rm -it --volume "$PWD:/app" dannyben/bashly'
|
32
|
+
```
|
28
33
|
|
29
34
|
Prerequisites
|
30
35
|
--------------------------------------------------
|
@@ -61,6 +66,7 @@ Bahsly is responsible for:
|
|
61
66
|
- **Color output**.
|
62
67
|
- **Config file management** (INI format).
|
63
68
|
- **YAML parsing**.
|
69
|
+
- and more.
|
64
70
|
|
65
71
|
Usage
|
66
72
|
--------------------------------------------------
|
@@ -209,6 +215,7 @@ Real World Examples
|
|
209
215
|
|
210
216
|
- [Rush][rush] - a Personal Package Manager
|
211
217
|
- [Alf][alf] - a generator for bash aliases and sub-aliases
|
218
|
+
- [git-changelog][git-changelog] - a change log generator
|
212
219
|
|
213
220
|
|
214
221
|
Contributing / Support
|
@@ -220,4 +227,6 @@ to contribute, feel free to [open an issue][issues].
|
|
220
227
|
[issues]: https://github.com/DannyBen/bashly/issues
|
221
228
|
[rush]: https://github.com/DannyBen/rush-cli
|
222
229
|
[alf]: https://github.com/DannyBen/alf
|
230
|
+
[git-changelog]: https://github.com/DannyBen/git-changelog
|
231
|
+
|
223
232
|
|
data/lib/bashly/models/flag.rb
CHANGED
@@ -21,7 +21,7 @@ help_flag_text: Show this help
|
|
21
21
|
version_flag_text: Show version number
|
22
22
|
|
23
23
|
# Error messages
|
24
|
-
flag_requires_an_argument: "%{
|
24
|
+
flag_requires_an_argument: "%{name} requires an argument: %{usage}"
|
25
25
|
invalid_argument: "invalid argument: %s"
|
26
26
|
invalid_flag: "invalid option: %s"
|
27
27
|
missing_required_argument: "missing required argument: %{arg}\\nusage: %{usage}"
|
data/lib/bashly/version.rb
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
<%= aliases.join " | " %> )
|
3
3
|
<%- if arg -%>
|
4
4
|
if [[ $2 && $2 != -* ]]; then
|
5
|
-
args[<%=
|
5
|
+
args[<%= name %>]="$2"
|
6
6
|
shift
|
7
7
|
shift
|
8
8
|
else
|
9
|
-
printf "%s\n" "<%= strings[:flag_requires_an_argument] % {
|
9
|
+
printf "%s\n" "<%= strings[:flag_requires_an_argument] % { name: name, usage: usage_string } %>"
|
10
10
|
exit 1
|
11
11
|
fi
|
12
12
|
<%- else -%>
|
13
|
-
args[<%=
|
13
|
+
args[<%= name %>]=1
|
14
14
|
shift
|
15
15
|
<%- end -%>
|
16
16
|
;;
|
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: 0.
|
4
|
+
version: 0.4.0
|
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: 2020-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
|
-
rubygems_version: 3.
|
145
|
+
rubygems_version: 3.1.4
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Bash Command Line Tool Generator
|