Function wasmer_deploy_cli::util::prompt_for_package
source · pub async fn prompt_for_package(
message: &str,
default: Option<&str>,
check: Option<PackageCheckMode>,
client: Option<&BackendClient>
) -> Result<(StringWebcIdent, Option<Package>), Error>Expand description
Ask for a package name.
Will continue looping until the user provides a valid name.
If an API is provided, will check if the package exists.