From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_SBL,URIBL_SBL_A shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 9AB431F8C4 for ; Sat, 6 Feb 2021 12:18:44 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/17] lei: more random updates Date: Sat, 6 Feb 2021 12:18:27 +0000 Message-Id: <20210206121844.10979-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "lei add-external --mirror $URL $DESTDIR" works. Tests are more split out and hopefully easier-to-manage going forward (they are slowing down, though, but more use of common setup_public_inboxes() may help). The curl(1) short options are gone to avoid conflicts. --help looks a bit nicer, now. Eric Wong (17): lei_overview: drop unnecessary autoflush call lei: favor "keywords" over "flags", test --no-kw lei: fix completion of --no-kw / --no-keywords lei: abort lei_import worker on client abort init: lowercase -j for --jobs lei_query: trim curl options tests: add test_lei wrapper, split out t/lei-import.t t/lei-externals: split out into separate test t/tests: split out setup_public_inboxes sub tests: split out lei-daemon.t from lei.t treewide: replace confess with croak script/lei: avoid waitpid(-1, ...) to keep tests fast lei: add-external --mirror support lei help: split out into separate file lei add-external: reject index and remote opts w/o mirror lei_curl: replace -K/--config with --curl-config lei: remove short switch support for curl(1) options MANIFEST | 11 +- Makefile.PL | 3 + contrib/completion/lei-completion.bash | 2 +- lib/PublicInbox/Admin.pm | 7 +- lib/PublicInbox/DS.pm | 10 +- lib/PublicInbox/Eml.pm | 4 +- lib/PublicInbox/IPC.pm | 2 +- lib/PublicInbox/LEI.pm | 200 +++++------- lib/PublicInbox/LeiCurl.pm | 72 +++++ lib/PublicInbox/LeiExternal.pm | 46 ++- lib/PublicInbox/LeiHelp.pm | 100 ++++++ lib/PublicInbox/LeiImport.pm | 4 +- lib/PublicInbox/LeiMirror.pm | 288 +++++++++++++++++ lib/PublicInbox/LeiOverview.pm | 1 - lib/PublicInbox/LeiQuery.pm | 24 +- lib/PublicInbox/LeiXSearch.pm | 33 +- lib/PublicInbox/OverIdx.pm | 2 +- lib/PublicInbox/TestCommon.pm | 142 ++++++++- script/lei | 28 +- script/public-inbox-init | 2 +- t/home1/.gitignore | 5 + t/home1/Makefile | 7 + t/home1/README | 8 + t/lei-daemon.t | 63 ++++ t/lei-externals.t | 200 ++++++++++++ t/lei-import.t | 39 +++ t/lei-mirror.t | 30 ++ t/lei-oneshot.t | 8 - t/lei.t | 424 +++---------------------- 29 files changed, 1180 insertions(+), 585 deletions(-) create mode 100644 lib/PublicInbox/LeiCurl.pm create mode 100644 lib/PublicInbox/LeiHelp.pm create mode 100644 lib/PublicInbox/LeiMirror.pm create mode 100644 t/home1/.gitignore create mode 100644 t/home1/Makefile create mode 100644 t/home1/README create mode 100644 t/lei-daemon.t create mode 100644 t/lei-externals.t create mode 100644 t/lei-import.t create mode 100644 t/lei-mirror.t delete mode 100644 t/lei-oneshot.t