bashly 1.2.4 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cc30c6d61489ca1a61dc4c8380476d9db8f6e5298bb5c079b964966e7266dbd
4
- data.tar.gz: 695681a9817474ed89e833ea4b0cdd5fb2c7ecda7dfb032cc017540f0f04a986
3
+ metadata.gz: 99f485c3101793ea955bdf125a42278f0e3a81af69e6cf9e4f51e07c4179ce04
4
+ data.tar.gz: ca309bd6179a11a15423ee6e442e587321347e5142706ce66c5861e22e3394a8
5
5
  SHA512:
6
- metadata.gz: 7d3786ae3d2bd0171705eaa15fd644228e10774023c3042255102e81b7570af318fbe2e6dbae301c319e12830dd914fbfe3385fc90aca5dcd1dd49f8884e29c8
7
- data.tar.gz: 197fab7301ad30ccb93bf80c799d4aa978626220db9f748ab5048da9a857b2a47b71777c42a641aae3718d8e57d2923a672ea4e859280d097295bbd2fc4c3768
6
+ metadata.gz: fc5a0d81b08eef9c029c88fa6bb118c1f9e8154e52e86f113c8d2ae74c170f768fb48d310128df64b67c00e4c66855886ca1d57635c82118ff5c4737d1eaea29
7
+ data.tar.gz: 61c451a16352dd7b3ba28fcb6f2209b980eb5ff416d8656f3b0db802e0e5cea2b20334102e2a73eefc6f2e06b72059e1dfae80deaeee106484fc6e558d79fb48
@@ -1,3 +1,3 @@
1
1
  module Bashly
2
- VERSION = '1.2.4'
2
+ VERSION = '1.2.6'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  = view_marker
2
2
 
3
3
  > {{ function_name }}_command() {
4
- = render(:variables).indent(2) if variables&.any?
4
+ = render(:variables).indent(2)
5
5
  = load_user_file(filename).indent 2
6
6
  > }
7
7
  >
@@ -7,6 +7,7 @@
7
7
 
8
8
  if root_command?
9
9
  >
10
+ = render(:variables).indent(2)
10
11
  = render(:environment_variables_default).indent 2
11
12
  end
12
13
 
@@ -1,15 +1,14 @@
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=()
4
+ > declare -g -A args=()
5
+ > declare -g -A deps=()
6
+ > declare -g -a other_args=()
7
+ > declare -g -a env_var_names=()
8
+ > declare -g -a input=()
9
9
  if has_unique_args_or_flags?
10
- > declare -A unique_lookup=()
10
+ > declare -g -A unique_lookup=()
11
11
  end
12
- = render(:variables).indent(2) if variables&.any?
13
12
  > normalize_input "$@"
14
13
  > parse_requirements "${input[@]}"
15
14
  if user_file_exist?('before')
@@ -1,5 +1,7 @@
1
- = view_marker
1
+ if variables.any?
2
+ = view_marker
2
3
 
3
- variables.each do |var|
4
- = var.render(:definition)
5
- end
4
+ variables.each do |var|
5
+ = var.render(:definition)
6
+ end
7
+ end
@@ -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
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
4
+ version: 1.2.6
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-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole