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 +4 -4
- data/lib/wisco/commands/pull.rb +14 -6
- data/lib/wisco/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c884fc91f744fcfaa7c505cfe41f144a126719b319aa0afc79314e814b58beb
|
|
4
|
+
data.tar.gz: c9ce011b4f1d0d4eb9caf3de8d99b3d4dd3f13a8ded8a900366c977bdf3fc044
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0043c4006817460738d3d3aeebc811dd8787cdac3594f97fee131cafe4e8ef23c5737cb529ded62c093e2e68e9bab619111aff92ccbfad723248aeeab32f68bb
|
|
7
|
+
data.tar.gz: 6131d1dc2f0dc50a6ae7ff1eb71aa0cae04cde6ba995c507ea06ad48106a0dead0b8d8ff69f7836b19ac243e41af866719520722807b7871a999642b9189d9bf
|
data/lib/wisco/commands/pull.rb
CHANGED
|
@@ -123,14 +123,22 @@ module Wisco
|
|
|
123
123
|
exit 1
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if results.size
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
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:
|
|
100
|
+
summary: A CLI tool to assist with developing and managing Workato connectors.
|
|
98
101
|
test_files: []
|