lib/PublicInbox/LeiCurl.pm | 2 ++ lib/PublicInbox/LeiExternal.pm | 3 +++ diff --git a/lib/PublicInbox/LeiCurl.pm b/lib/PublicInbox/LeiCurl.pm index f346a1b43830661c707c5c23ab1d5c9c56cefd3a..3a79fbf8224b534bbb16ce6d83dc7b14a8eed918 100644 --- a/lib/PublicInbox/LeiCurl.pm +++ b/lib/PublicInbox/LeiCurl.pm @@ -2,6 +2,8 @@ # Copyright (C) 2021 all contributors # License: AGPL-3.0+ # common option and torsocks(1) wrapping for curl(1) +# Eventually, we may support using libcurl via Inline::C and/or +# WWW::Curl; but curl(1) is most prevalent and widely-installed. package PublicInbox::LeiCurl; use strict; use v5.10.1; diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm index b402eed4524cab6123191638581283ed01f6326c..8a51afcb59a17e789be3af65b2e4d85d7250a48d 100644 --- a/lib/PublicInbox/LeiExternal.pm +++ b/lib/PublicInbox/LeiExternal.pm @@ -44,6 +44,8 @@ $uri->as_string; } } +# TODO: we will probably extract glob2re into a separate module for +# PublicInbox::Filter::Base and maybe other places my %re_map = ( '*' => '[^/]*?', '?' => '[^/]', '[' => '[', ']' => ']', ',' => ',' ); @@ -99,6 +101,7 @@ } (); } +# TODO: does this need JSON output? sub lei_ls_external { my ($self, $filter) = @_; my $opt = $self->{opt};