Skip to main content

Module util

Module util 

Source

Structs§

SetOnce
A wrapper type that ensures that the inner type is only set once
WAPM_FORCE_YES_TO_PROMPTS
Global variable that determines the behavior of prompts

Enums§

LicenseError
NameError

Statics§

MAX_NAME_LENGTH

Functions§

create_package_dir
create_temp_dir
fully_qualified_package_display_name
get_hashed_module_key
get_package_namespace_and_name
get_runtime_with_args
We put this in a new function, to be clear that runtime can be both
get_username
prompt_user_for_yes
Asks the user to confirm something. Returns a boolean indicating if the user consented or if the WAPM_FORCE_YES_TO_PROMPTS variable is set
set_wapm_should_accept_all_prompts
validate_license
Checks whether a given package name is acceptable or not
validate_name
Checks whether a given package name is acceptable or not
validate_runner
Checks whether a given command / runner name is acceptable or not
wapm_should_accept_all_prompts
If true, prompts should not ask for user input
wapm_should_print_color
whoami_distro