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 +4 -4
- data/lib/cli/mastermind.rb +8 -1
- data/lib/cli/mastermind/plan/interface.rb +1 -1
- data/lib/cli/mastermind/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 889cacb914ffc6a59675412d3d09deba8f531ec23633c4ea1fba1e56bef5fa28
|
4
|
+
data.tar.gz: 8a1319225703fcadb958b83f61b021dbddbdead8285cc8c441e80773ddf6edb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6618509b8ac96d95afd1e3b1306814786dcef86919de6332cd4cd0937a7eed88855c46c39d3167835aa1288a3bcbde854183113631dfdd65b216c9401285e6ea
|
7
|
+
data.tar.gz: 95f2c85d604dab702b4dd14e7c08e66b2e963065f510a096cd28485213dbc3de257489ec7802d970bd8e752148d3ebe965f36b3359bd0ebb819bf736067ada58
|
data/lib/cli/mastermind.rb
CHANGED
@@ -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}}}")
|