power_stencil 0.8.1 → 0.8.2

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
  SHA1:
3
- metadata.gz: 918c3b7e8a07aeb553541b871cf9934cb261e106
4
- data.tar.gz: e0104ecbcda4813b61f2406a4d119cdf8aa2e75f
3
+ metadata.gz: 8071282b8b16082ff779edb68c0dc4f546a90d14
4
+ data.tar.gz: bbf0bcaa8c66422068910d54b5772c227260c63e
5
5
  SHA512:
6
- metadata.gz: 5baa7ed61a7eb6328373dd8b7e510252532fb96dd4ecb8b3865ba1b6d062df3225a8a4adf536470a85116b996aec7700d670cb498376c8e4b4bb95c9400c4c3a
7
- data.tar.gz: e8672fcd322902c53d2b1d48803b25498898c4ee634a1a1d01f4c653516f121fcdbfafe2a7755c243d2fb5592fdc35ab876caa89d3afd9aa00abfda0dedd8bf6
6
+ metadata.gz: 01cc43e3669209fdae04fedb2939435eb1c327b2c2dff9b10260f45acf777a474a7d285d53b60c2de3feb588691b4dd30310ed943b46f61c3cbe02bb0654d827
7
+ data.tar.gz: c4e41be7e7f4838b5db952824c8607da2a89d8834202fa101a9bf3fc28805d767ac11cc2f498f251d00826d7685b53c9a88c1517e5fc8404b347e4e6254cdc48
@@ -329,7 +329,7 @@
329
329
  build [entity_type[[/ ]entity_name]]+ [options]
330
330
 
331
331
  Builds repository entities. Parameters are used the same way as in 'get'.
332
- :type: entity
332
+ :type: buildable
333
333
  :options:
334
334
  regexp: *REGEXPOPT
335
335
  supported-builds:
@@ -92,6 +92,12 @@ _power_stencil_entity_type() {
92
92
  _values : $( _get_completion_info power_stencil adm --query-for-completion entity-types )
93
93
  }
94
94
 
95
+ # Type buildable
96
+ _power_stencil_buildable() {
97
+ $( _within_power_stencil_project ) || return 'YOU_ARE_NOT_WITHIN_A_POWER_STENCIL_PROJECT'
98
+ _values : $( _get_completion_info power_stencil adm --query-for-completion buildable )
99
+ }
100
+
95
101
  # Type scenario
96
102
  _power_stencil_scenario() {
97
103
  $( _within_power_stencil_project ) || return 'YOU_ARE_NOT_WITHIN_A_POWER_STENCIL_PROJECT'
@@ -110,7 +116,7 @@ _power_stencil_path() {
110
116
 
111
117
  # Type completion_query_type
112
118
  _power_stencil_completion_query_type() {
113
- _values : $( echo entities entity-types scenario )
119
+ _values : $( echo entities entity-types scenario buildable )
114
120
  }
115
121
 
116
122
  # Type array and string
@@ -13,6 +13,10 @@ module PowerStencil
13
13
  engine.entities(engine.root_universe, criterion: :by_type, value: :entity_override) do |entity|
14
14
  !entity.scenario.nil? and !entity.scenario.empty?
15
15
  end.map(&:scenario).sort.uniq
16
+ when :buildable
17
+ engine.entities(engine.root_universe) do |entity|
18
+ entity.buildable?
19
+ end.map(&:as_path).sort
16
20
  else
17
21
  raise PowerStencil::Error, "'#{query_type}' is not a valid query type for completion !"
18
22
  end
@@ -10,6 +10,10 @@ module Slop
10
10
  ZSH_TYPE = :power_stencil_do_nothing
11
11
  end
12
12
 
13
+ class BuildableOption
14
+ ZSH_TYPE = :power_stencil_buildable
15
+ end
16
+
13
17
  class LogLevelOption < IntegerOption
14
18
  ZSH_TYPE = :power_stencil_log_level
15
19
  end
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.8.1'.freeze
2
+ VERSION = '0.8.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
@@ -298,7 +298,7 @@ metadata:
298
298
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
299
299
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
300
300
  homepage_uri: https://powerstencil.brizone.org/
301
- post_install_message: "\nThank you for installing PowerStencil 0.8.1 !\nFrom the command
301
+ post_install_message: "\nThank you for installing PowerStencil 0.8.2 !\nFrom the command
302
302
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
303
303
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
304
304
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel