foobara-sh-cli-connector 0.0.6 → 0.0.7

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: 57a0df47928d8b15c6476bb3e27675c5024b309cd6e9ea5674f45705e6808752
4
- data.tar.gz: e73fe6dc8440af0ba5ad6fff065d6a6a4b64e117c976888980658b1a8bdcd198
3
+ metadata.gz: cb9d3953666b0625afed022b3d6b2af58ce99df8fea4b9338a11cb81666db14b
4
+ data.tar.gz: c1b32114bcd3c4176b31bd527586c8d11b9afbc258653e079e6d52990b4f89cc
5
5
  SHA512:
6
- metadata.gz: 06dcb088825381e71f5d6ef8d13f7886d840b8de551463cf972ceec66f09e84b1e4013128932136ca52c76107488a03f69b07fb634b6d5bb02b36a2f439512cc
7
- data.tar.gz: 72af7268de883dc4f15c841ca16eca2b630b5d81f24033e8139f4692e7ddf28c167d846fcf57dd5e629b3779048640a381a8ebe3391dc02a1e3c05b26fb2c2aa
6
+ metadata.gz: 8dd5a544763bfe3be4b66ce81e21df3ab870d117b1e2c5cd37320e393158bc6ca5931f8f627bd01c8739c8bfbbf792209299859f0e859f037b1533f811349e9d
7
+ data.tar.gz: 03170c33e3742835c7564b7223fb3fe2ebbda9ef4759df07f2c611b7d9fbfa29c7902a668c2a08611aa0ffadaf103df13b6434330c172ec3d6fe51c18a07e2c5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.7] - 2024-11-30
2
+
3
+ * Add descriptions to available commands
4
+
1
5
  ## [0.0.6] - 2024-10-28
2
6
 
3
7
  * Handle CommandConnector namespace change
@@ -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.6
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