pub async fn add_file(
cx: &Context,
p: Provider,
name: &str,
file: &Path,
line: &mut (dyn FnMut(&str) + Send),
) -> Result<Option<DownloadToAdopt>, String>Expand description
Adds the box file file as box name for p (vagrant box add --name <name> <file> --force),
each line Vagrant prints said to line: a run’s machine saved by Running::package, which a
later run boots by that name. The box as added, for a caller that keeps a record of what it
added (none when its version can’t be read back).
§Errors
What Vagrant said (its last error lines), or that it stalled.