qcmd 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/qcmd/cli.rb +3 -0
- data/lib/qcmd/input_completer.rb +14 -1
- data/lib/qcmd/version.rb +1 -1
- metadata +3 -3
data/lib/qcmd/cli.rb
CHANGED
data/lib/qcmd/input_completer.rb
CHANGED
@@ -51,7 +51,20 @@ module Qcmd
|
|
51
51
|
end
|
52
52
|
else
|
53
53
|
# haven't selected a machine yet
|
54
|
-
|
54
|
+
machine_names = Qcmd::Network.names
|
55
|
+
quoted_names = machine_names.map {|mn| %["#{mn}"]}
|
56
|
+
names = (quoted_names + machine_names).grep(matcher)
|
57
|
+
names = names.map {|wsn|
|
58
|
+
if / / =~ wsn && /"/ !~ wsn
|
59
|
+
# if workspace name has a space and is not already quoted
|
60
|
+
%["#{ wsn }"]
|
61
|
+
else
|
62
|
+
wsn
|
63
|
+
end
|
64
|
+
}
|
65
|
+
|
66
|
+
# unquote
|
67
|
+
commands = commands + names
|
55
68
|
end
|
56
69
|
|
57
70
|
commands
|
data/lib/qcmd/version.rb
CHANGED
metadata
CHANGED