cli-mastermind 0.4.0 → 0.4.1

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: e0b0b23e78ff823eb318d8f38781d4dd88af5af1fd2459ba1ece44e24bd54e09
4
- data.tar.gz: bf808a481a92a19788f0ee380ebff521604c41c21274b50ef53c90f0df786ae6
3
+ metadata.gz: 889cacb914ffc6a59675412d3d09deba8f531ec23633c4ea1fba1e56bef5fa28
4
+ data.tar.gz: 8a1319225703fcadb958b83f61b021dbddbdead8285cc8c441e80773ddf6edb2
5
5
  SHA512:
6
- metadata.gz: 8e9621789813f9e9714752c598d0fc248787939085283e4b40736c2d350812706c8bb88654a47d4e508ccd4c7714a438c95e82695118f2ac0cb0550a7aaa3697
7
- data.tar.gz: efeefe3741a187f78a1704845888596f81fdb5c13f96039659f46572319a8ffd986b5a419192afa207bca7e8fc2e176c10e78612484e91e8e2f83d9fb4808218
6
+ metadata.gz: 6618509b8ac96d95afd1e3b1306814786dcef86919de6332cd4cd0937a7eed88855c46c39d3167835aa1288a3bcbde854183113631dfdd65b216c9401285e6ea
7
+ data.tar.gz: 95f2c85d604dab702b4dd14e7c08e66b2e963065f510a096cd28485213dbc3de257489ec7802d970bd8e752148d3ebe965f36b3359bd0ebb819bf736067ada58
@@ -100,11 +100,18 @@ module CLI
100
100
  end
101
101
 
102
102
  def display_plans(plans=@plans, prefix='')
103
+ fade_code = CLI::UI::Color.new(90, '').code
104
+
103
105
  plans.each do |(name, plan)|
104
106
  next unless plan.has_children? or plan.description
105
107
 
106
108
  print prefix + '• '
107
- puts stylize("{{yellow:#{titleize(name)}")
109
+ puts stylize("{{yellow:#{titleize(name)} #{fade_code}(#{name})#{CLI::UI::Color::RESET.code}")
110
+
111
+ if plan.aliases.any?
112
+ puts prefix + " - #{fade_code}aliases: #{plan.aliases.to_a.join(', ')}#{CLI::UI::Color::RESET.code}"
113
+ end
114
+
108
115
  if plan.description
109
116
  print prefix + ' - '
110
117
  puts stylize("{{blue:#{plan.description}}}")
@@ -50,7 +50,7 @@ module CLI::Mastermind
50
50
  end
51
51
 
52
52
  def add_alias(alias_to)
53
- config.define_alias(alias_to, name)
53
+ config.define_alias(alias_to.to_s, name)
54
54
  @aliases.add alias_to
55
55
  end
56
56
 
@@ -8,7 +8,7 @@ module CLI
8
8
  module VERSION
9
9
  RELEASE = 0
10
10
  MAJOR = 4
11
- MINOR = 0
11
+ MINOR = 1
12
12
  PATCH = nil
13
13
 
14
14
  STRING = [RELEASE, MAJOR, MINOR, PATCH].compact.join('.').freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli-mastermind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hall