No point in lazy-loading these, since they're always loaded
anyways and would not have portability problems on systems with
minimal dependencies.
use Cwd 'abs_path';
use base qw(Exporter);
our @EXPORT_OK = qw(resolve_repo_dir);
use Cwd 'abs_path';
use base qw(Exporter);
our @EXPORT_OK = qw(resolve_repo_dir);
-require PublicInbox::Config;
+use PublicInbox::Config;
+use PublicInbox::Inbox;
use PublicInbox::Spawn qw(popen_rd);
sub resolve_repo_dir {
use PublicInbox::Spawn qw(popen_rd);
sub resolve_repo_dir {
sub resolve_inboxes ($;$$) {
my ($argv, $opt, $cfg) = @_;
sub resolve_inboxes ($;$$) {
my ($argv, $opt, $cfg) = @_;
- require PublicInbox::Inbox;
$opt ||= {};
$cfg //= eval { PublicInbox::Config->new };
$opt ||= {};
$cfg //= eval { PublicInbox::Config->new };
package PublicInbox::Config;
use strict;
use warnings;
package PublicInbox::Config;
use strict;
use warnings;
-require PublicInbox::Inbox;
use PublicInbox::Spawn qw(popen_rd);
sub _array ($) { ref($_[0]) eq 'ARRAY' ? $_[0] : [ $_[0] ] }
use PublicInbox::Spawn qw(popen_rd);
sub _array ($) { ref($_[0]) eq 'ARRAY' ? $_[0] : [ $_[0] ] }