bashly 0.3.9 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91071a35277525b61d148838ffb2d1871fa99b309dc060ba87cf3b68d12b7beb
4
- data.tar.gz: c6840d4fea35a5eeae254ab177f745a63e0f507419a3e05ca5db77c808169a99
3
+ metadata.gz: 14ee3d9cf49b4497ffbb7e374894cc0cfe18e1a1493a58c638cf4fd8896f30e2
4
+ data.tar.gz: 18dd37e6cfc3efd1f3c3d103f943e5ba8db4b414b2b26bed1bb096728c40cd1d
5
5
  SHA512:
6
- metadata.gz: 199203d019e257014ee56d6501cc4ba31bebd61742aed461d3685d9a7768d100894794d2e276b7737ef49bd399c20d65209530a1d73db11672fe09b23cd2014a
7
- data.tar.gz: c80c2705fc9ff0dd39311a944dc24493cbf49d2d8ca6e91d266d813cfadf90d592b98a054671a3641aa9c6c06c35f38119f87488bf45d92721aad6ad73080362
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
 
@@ -11,6 +11,10 @@ module Bashly
11
11
  end
12
12
  end
13
13
 
14
+ def name
15
+ long || short
16
+ end
17
+
14
18
  def usage_string(extended: false)
15
19
  result = [aliases.join(", ")]
16
20
  result << arg.upcase if arg
@@ -100,7 +100,7 @@ config_show() {
100
100
  # done
101
101
  #
102
102
  config_keys() {
103
- regex="^([a-zA-Z0-9_\-]+) *="
103
+ regex="^([a-zA-Z0-9_\-\/\.]+) *="
104
104
 
105
105
  config_init
106
106
 
@@ -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: "%{long} requires an argument: %{usage}"
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}"
@@ -1,3 +1,3 @@
1
1
  module Bashly
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -2,15 +2,15 @@
2
2
  <%= aliases.join " | " %> )
3
3
  <%- if arg -%>
4
4
  if [[ $2 && $2 != -* ]]; then
5
- args[<%= long %>]="$2"
5
+ args[<%= name %>]="$2"
6
6
  shift
7
7
  shift
8
8
  else
9
- printf "%s\n" "<%= strings[:flag_requires_an_argument] % { long: long, usage: usage_string } %>"
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[<%= long %>]=1
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.3.9
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-04-01 00:00:00.000000000 Z
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.0.3
145
+ rubygems_version: 3.1.4
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Bash Command Line Tool Generator