True - Means there is NO team config AND we detected that a V1 profile exists. False otherwise.
Coerces string property value to a boolean or number type.
String value
Property type defined in the schema
Boolean, number, or string
Find the specified profile type in the specified (or nested) profiles.
The profile type to search for.
The profile object in which we should search.
True if we find the profile type. False otherwise.
Form a profile name of a given profile type to be used as a default profile name. The name can vary based on whether the configuration to contain the profile is a global config or a project config.
Currently, we only form a different global/project profile name for a base profile. The profile name for any other profile type is currently set to the profile type string.
The profile type for which we will form a name.
Indicator that the caller knows that the profile name will be
for a globalConfig (true) or project config (false).
If globalConfig is not supplied, we interrogate any existing
Config object to determine whether to form a global or project
profile name.
A string to be used as the profile name for the specified profile type.
Retrieves the name of the active profile for the given type. If no such profile exists, returns the default name which can be used to create a new profile.
The type of CLI profile
CLI arguments which may specify a profile
Name to fall back to if profile doesn't exist. If not specified, the profile type will be used.
The profile name
Retrieves the Zowe CLI home directory. In the situation Imperative has not initialized it we use a default value.
Perform a rudimentary initialization of some Imperative utilities. We must do this because VSCode apps do not typically call imperative.init.
Checks if partial path is equal to or nested inside full path
JSON path to profile 1
JSON path to profile 2
Reads the extenders.json
file from the CLI home directory.
Called once in readProfilesFromDisk
and cached to minimize I/O operations.
Form an error message for failures to securely save a value.
Text that our caller can supply for a solution.
ImperativeError to be thrown
Attempts to write to the extenders.json
file in the CLI home directory.
true
if written successfully; false
otherwise
Generated using TypeDoc
Returns an indicator that the user has no team configuration, but we detected the existence of old-school V1 profiles. We will not work with the V1 profiles. This function can let you tell a user that they are incorrectly trying to use V1 profiles.