Closed kevinfodness closed 2 months ago
Alternately, or perhaps additionally, the value of the --force
flag could be used to provide a default, like "let's assume the user wants to save this file without being prompted, because they passed the flag that automatically answers 'yes' to prompts."
Alternately, or perhaps additionally, the value of the --force flag could be used to provide a default, like "let's assume the user wants to save this file without being prompted, because they passed the flag that automatically answers 'yes' to prompts."
Agreed.
Expected/Desired Behavior
The prompt that asks users to
Download import errors report now?
should be able to be bypassed by setting the preference via a flag passed to thevip import media
command. It's possible to otherwise run the command without interaction (using the--force
flag to bypass the confirmation prompt) and it would be useful to also set this, so that several media import operations could be performed in sequence in a shell script (e.g., importing several smaller archives).Actual Behavior
When an import operation concludes, if there were any errors (e.g., image already exists and was skipped, or was not able to be uploaded for some reason, like a filename that is too long) the script stops and waits for user input.
Steps to Reproduce the Problem
vip import media
which generate errors (such as file already exists, without the overwrite option)(Optional) Additional notes
Flag should allow this block of code to be bypassed: https://github.com/Automattic/vip-cli/blob/trunk/src/lib/media-import/status.ts#L358-L361