diff options
author | Eric Wong <e@80x24.org> | 2021-09-19 12:50:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-19 19:53:03 +0000 |
commit | 9d0f17840479508de4aaf76fe6c150e94a9f79c3 (patch) | |
tree | 9065f32b760acbb8e4285600e4be01ebe631476a /lib/PublicInbox/LeiInit.pm | |
parent | 20c940a876728fe91892200dd874dd917cd677ac (diff) | |
download | public-inbox-9d0f17840479508de4aaf76fe6c150e94a9f79c3.tar.gz |
As with "lei edit-search", "lei config --edit" may spawn an interactive editor which works best from the terminal running script/lei. So implement LeiConfig as a superclass of LeiEditSearch so the two commands can share the same verification hooks and retry logic.
Diffstat (limited to 'lib/PublicInbox/LeiInit.pm')
-rw-r--r-- | lib/PublicInbox/LeiInit.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiInit.pm b/lib/PublicInbox/LeiInit.pm index 6558ac0a..27ce8169 100644 --- a/lib/PublicInbox/LeiInit.pm +++ b/lib/PublicInbox/LeiInit.pm @@ -23,7 +23,7 @@ sub lei_init { # some folks like symlinks and bind mounts :P if (@dir && "@cur[1,0]" eq "@dir[1,0]") { - $self->lei_config('leistore.dir', $dir); + $self->_config('leistore.dir', $dir); $self->_lei_store(1)->done; return $self->qerr("$exists (as $cur)"); } @@ -31,7 +31,7 @@ sub lei_init { E: leistore.dir=$cur already initialized and it is not $dir } - $self->lei_config('leistore.dir', $dir); + $self->_config('leistore.dir', $dir); $self->_lei_store(1)->done; $exists //= "# leistore.dir=$dir newly initialized"; $self->qerr($exists); |