ops_team 0.16.0 → 0.17.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: 8c264a310257b2d0178a78efaaa347405c8734a527195d3546ffe635ec00633d
4
- data.tar.gz: 9c111521daed660115eff1628d5a0390673bb57f1d1e4a245f80a23ee64bc3fe
3
+ metadata.gz: e4467e73bf2ee29bd368007e420ab6ec5291819bc3ea4d6f0e98e268b9311778
4
+ data.tar.gz: 6b2c1976f43978255cd85ec7e53af2cb89986c8a7b56eeb159035bcd7735c1fa
5
5
  SHA512:
6
- metadata.gz: e5febca01da575199794b09fc4607f23951b194a55903093b92e2fcfe0e03722990973fa8961ab85334a19c982d69aca161d8dc11d9a4d9d0fd84cc1dddc9a63
7
- data.tar.gz: 40022c898ba9bb313b15567bd8a768adcdead145fde33b1e88b9534af2bbdf37bf7ecc30c8604cfc34dc8f5771ac688c08b0d5bc600f6ff3c56a251ead0ec504
6
+ metadata.gz: ca3cb0915e5a328dfe0933ac6894d0b64a12d65d5905c8ee99385fb73f5f3f58d7635448e0d565f7944ee17d85a44e8d3ba00026ca13f7b6415ba53e9f068060
7
+ data.tar.gz: b0d1429874a25e8229ef56182fb56dc4997d6ca1f30385eb386a97e6a16ed22b8cbbd18f1e7b5321092a029ce0c61d9f76a93a4da25732a9fe9057299b187468
@@ -54,12 +54,18 @@ module Builtins
54
54
  def actions
55
55
  return [] unless @config["actions"]
56
56
 
57
- @config["actions"].map do |name, value|
58
- format("%<name>-35s %<desc>s",
59
- name: name.yellow,
60
- desc: value["description"] || value["command"]
57
+ @config["actions"].map do |name, action_config|
58
+ format("%<name>-40s %<desc>s",
59
+ name: "#{name.yellow} #{alias_string_for(action_config)}",
60
+ desc: action_config["description"] || action_config["command"]
61
61
  )
62
62
  end.sort
63
63
  end
64
+
65
+ def alias_string_for(action_config)
66
+ return "[#{action_config["alias"]}]" if action_config["alias"]
67
+
68
+ ""
69
+ end
64
70
  end
65
71
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '0.16.0'
5
+ s.version = '0.17.0'
6
6
  s.authors = [
7
7
  'nickthecook@gmail.com'
8
8
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com