Open
Description
Move the wp data-liberation a-file.xml
WP-CLI command to a separate class.
It should ideally be changed this way:
- A first subcommand
import
that is callable aswp data-liberation import a-file.xml
. So that we are open to other subcommands. E.g.wp data-liberation analyze
,preview
,restart
etc. - A
--dry-run
option. pcntl_signal
for catchingSIGINT
andSIGTERM
that callexit()
when the user presses ctrl+c on the keyboard.- Should output helpful information to the user during the various phases of
WP_Stream_Importer::next_step()
.