power_stencil 0.8.1 → 0.8.2
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/etc/base_commands_definition.yml +1 -1
- data/etc/templates/zsh_command_line_completion/_power_stencil.sh.erb +7 -1
- data/lib/power_stencil/project/completion.rb +4 -0
- data/lib/power_stencil/utils/slop_extra_option_types.rb +4 -0
- data/lib/power_stencil/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8071282b8b16082ff779edb68c0dc4f546a90d14
|
4
|
+
data.tar.gz: bbf0bcaa8c66422068910d54b5772c227260c63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01cc43e3669209fdae04fedb2939435eb1c327b2c2dff9b10260f45acf777a474a7d285d53b60c2de3feb588691b4dd30310ed943b46f61c3cbe02bb0654d827
|
7
|
+
data.tar.gz: c4e41be7e7f4838b5db952824c8607da2a89d8834202fa101a9bf3fc28805d767ac11cc2f498f251d00826d7685b53c9a88c1517e5fc8404b347e4e6254cdc48
|
@@ -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
|
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.
|
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.
|
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
|