aboutsummaryrefslogtreecommitdiffstats
path: root/icevault
diff options
context:
space:
mode:
Diffstat (limited to 'icevault')
-rwxr-xr-xicevault7
1 files changed, 7 insertions, 0 deletions
diff --git a/icevault b/icevault
index 7127c23..45be1e0 100755
--- a/icevault
+++ b/icevault
@@ -552,6 +552,13 @@ if ($command eq '_complete') {
exit;
}
+elsif ($command eq '_geturi') {
+ # used internaly for auto-completion
+ usage(1) if @ARGV;
+ print $LOCALE->encode( &connect($CONFIG{socket}) ), "\n";
+ sendCommand 'QUIT';
+ exit;
+}
elsif ($command eq 'insert') {
usage(1) unless $#ARGV < 1;
my $uri = &connect($CONFIG{socket});