load
=head2 Using the server for completion
# foo-complete
#!perl
use HTTP::Tiny::UNIX;
use JSON;
my $hres = HTTP::Tiny::UNIX->new->post_form(
'http:/tmp/app1.sock//api/Perinci/CmdLine/Ser
NV{COMP_LINE},
point => $ENV{COMP_POINT},
'-riap-fmt' => 'json',
},
);
my $rres = decode_json($hres->{content});
print $rres->[2];
Activate bash tab completion:
% chmod