foobara-sh-cli-connector 0.0.5 → 0.0.7

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
  SHA256:
3
- metadata.gz: 86cd6383f66f2539bddf2ad271f59633c09ca825c2ed4cd03cd1e482d249e174
4
- data.tar.gz: 74f74066b9a56c656dc668f6457e50b356eba0018ac78aeef1afcdf696ff8e55
3
+ metadata.gz: cb9d3953666b0625afed022b3d6b2af58ce99df8fea4b9338a11cb81666db14b
4
+ data.tar.gz: c1b32114bcd3c4176b31bd527586c8d11b9afbc258653e079e6d52990b4f89cc
5
5
  SHA512:
6
- metadata.gz: 374965269d948c921e52b1b57d8d079003d0d9974b61ae814392cdb8a2ae44dc3f30c52d0a07d7843cfb69fa550aadffb98ba4961190fb3b28acbb58f74c170f
7
- data.tar.gz: db9a92aeb951f286130df2a3c264a3829a9de138153040b41a4099dace1fba8072db01f144da4ffe53e92ad8582c864be9b025cbf2590ceede2a98c1aaa3da87
6
+ metadata.gz: 8dd5a544763bfe3be4b66ce81e21df3ab870d117b1e2c5cd37320e393158bc6ca5931f8f627bd01c8739c8bfbbf792209299859f0e859f037b1533f811349e9d
7
+ data.tar.gz: 03170c33e3742835c7564b7223fb3fe2ebbda9ef4759df07f2c611b7d9fbfa29c7902a668c2a08611aa0ffadaf103df13b6434330c172ec3d6fe51c18a07e2c5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [0.0.4] - 2024-10-28
1
+ ## [0.0.7] - 2024-11-30
2
+
3
+ * Add descriptions to available commands
4
+
5
+ ## [0.0.6] - 2024-10-28
2
6
 
3
7
  * Handle CommandConnector namespace change
4
8
 
@@ -152,9 +152,14 @@ module Foobara
152
152
  output.puts
153
153
  output.puts "Available commands:"
154
154
  output.puts
155
- command_registry.each_transformed_command_class do |command_class|
156
- output.puts " #{command_class.full_command_name}"
155
+
156
+ table = command_registry.all_transformed_command_classes.map do |command_class|
157
+ [" #{command_class.full_command_name}", command_class.description]
157
158
  end
159
+
160
+ serializer = Serializers::CliTabularSerializer.new
161
+
162
+ output.puts serializer.serialize(table)
158
163
  end
159
164
 
160
165
  def print_global_options
@@ -48,8 +48,6 @@ module Foobara
48
48
  end
49
49
 
50
50
  def column_widths(table)
51
- widths = []
52
-
53
51
  max_row_length = table.map(&:size).max
54
52
 
55
53
  widths = [0] * max_row_length
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-sh-cli-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foobara
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.5.22
82
+ rubygems_version: 3.5.23
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Command-line connector for Foobara