wisco 0.1.7 → 0.1.8

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: 832da4703274d86e1bc2f5e1684e499b9c4f2de2628c3f0dfb362e23e34213b9
4
- data.tar.gz: 369be3677fdc543c2a0d1a5344e195bf97e05a61d1a9816b6f1993bc521c63af
3
+ metadata.gz: 5c884fc91f744fcfaa7c505cfe41f144a126719b319aa0afc79314e814b58beb
4
+ data.tar.gz: c9ce011b4f1d0d4eb9caf3de8d99b3d4dd3f13a8ded8a900366c977bdf3fc044
5
5
  SHA512:
6
- metadata.gz: 3c5e906f59c4f5db77e30a8c583e09cea24e02074c89dfb1b9f985a7c3078bf789f17e5723d49d303789f8b0328d1c5a2c8bf80b735ea1706c4834700eef8dcb
7
- data.tar.gz: e474a3f6f3b761f3165366fb335c276f7d73ed2725d50a7dc2bea9fde92decf13b10991a809bc86b2737dbbc558284e8617c4301f321c67dadfe00e127e68eee
6
+ metadata.gz: 0043c4006817460738d3d3aeebc811dd8787cdac3594f97fee131cafe4e8ef23c5737cb529ded62c093e2e68e9bab619111aff92ccbfad723248aeeab32f68bb
7
+ data.tar.gz: 6131d1dc2f0dc50a6ae7ff1eb71aa0cae04cde6ba995c507ea06ad48106a0dead0b8d8ff69f7836b19ac243e41af866719520722807b7871a999642b9189d9bf
@@ -123,14 +123,22 @@ module Wisco
123
123
  exit 1
124
124
  end
125
125
 
126
- if results.size > 1
127
- warn "Error: Multiple connectors matched '#{title}':"
128
- results.each { |r| warn " - #{r['title']} (id: #{r['id']}, name: #{r['name']})" }
129
- warn " Use --title with a more specific name."
130
- exit 1
126
+ return results.first if results.size == 1
127
+
128
+ # Multiple matches let the user choose
129
+ puts "Multiple connectors matched '#{title}':"
130
+ results.each_with_index do |r, i|
131
+ puts " #{i + 1}. #{r['title']} (id: #{r['id']}, name: #{r['name']})"
131
132
  end
132
133
 
133
- results.first
134
+ loop do
135
+ print "Enter number to retrieve (1-#{results.size}): "
136
+ input = $stdin.gets.strip
137
+ index = input.to_i
138
+ return results[index - 1] if index >= 1 && index <= results.size
139
+
140
+ warn "Invalid selection. Please enter a number between 1 and #{results.size}."
141
+ end
134
142
  end
135
143
 
136
144
  def handle_http_error(status, context, identifier, body: nil)
data/lib/wisco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wisco
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - mbillington
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-10 00:00:00.000000000 Z
11
+ date: 2026-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -52,7 +52,10 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
- description:
55
+ description: "Wisco is a command-line interface (CLI) tool designed to assist developers
56
+ in creating and managing Workato connectors. \nIt extends the capabilities of the
57
+ official Workato Connector SDK by providing additional features and streamlining
58
+ common tasks, making the development process more efficient and user-friendly.\n"
56
59
  email:
57
60
  executables:
58
61
  - wisco
@@ -94,5 +97,5 @@ requirements: []
94
97
  rubygems_version: 3.1.6
95
98
  signing_key:
96
99
  specification_version: 4
97
- summary: Workato Connector SDK Companion
100
+ summary: A CLI tool to assist with developing and managing Workato connectors.
98
101
  test_files: []