]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: note some TODO items (curl, externals)
authorEric Wong <e@80x24.org>
Wed, 10 Feb 2021 07:07:48 +0000 (07:07 +0000)
committerEric Wong <e@80x24.org>
Wed, 10 Feb 2021 19:21:37 +0000 (19:21 +0000)
I don't know if it's worth it to use libcurl directly
(nor the effort to support and maintain tests)

lib/PublicInbox/LeiCurl.pm
lib/PublicInbox/LeiExternal.pm

index f346a1b43830661c707c5c23ab1d5c9c56cefd3a..3a79fbf8224b534bbb16ce6d83dc7b14a8eed918 100644 (file)
@@ -2,6 +2,8 @@
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # 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;
index b402eed4524cab6123191638581283ed01f6326c..8a51afcb59a17e789be3af65b2e4d85d7250a48d 100644 (file)
@@ -44,6 +44,8 @@ sub ext_canonicalize {
        }
 }
 
+# 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 @@ sub get_externals {
        ();
 }
 
+# TODO: does this need JSON output?
 sub lei_ls_external {
        my ($self, $filter) = @_;
        my $opt = $self->{opt};