imperative
imperative copied to clipboard
Imperative CLI Framework
...because we incorrectly assume that all properties are required: https://github.com/zowe/imperative/blob/73ba62e8c4a99f58e24c3e907c5c5840fa443573/packages/cmd/src/profiles/CliProfileManager.ts#L367 A 3rd parameter should be passed which is set to `true` if the property is optional, so that no exception...
When opening #458, I noticed that the codecov report initially showed some lines losing coverage in a file that I had not touched (CommandResponse.ts). The diff disappeared and reappeared as...
Currently Imperative has a hardcoded list of CLI options which are masked in log output: https://github.com/zowe/imperative/blob/168d945775b9c4a2e1988e194d2c25d1ab927a53/packages/logger/src/LoggerUtils.ts#L17-L18 CLI plugins may have additional options with secure values that they want to censor....
I get an error for this line: `return ZosmfSession.createBasicZosmfSession(zosmfProfile);` The error message is following: ``` Type 'Session' is not assignable to type 'AbstractSession'. Types have separate declarations of a private...
This code: examples: [{ description: "Initalize a session by using --command to display the status screen, then display the JCL of " + "the first job. Request up to 5...
If `outputFormatOptions: true` is set on a command definition so that it supports multiple response formats with `--rft`, and the following JSON object is output: ``` { "time": "2019-10-10 08:36:04",...
If a command option of type "number" has a default value of `Infinity`, the default value is not shown when CLI help text is printed for that command. The expected...
I issued the following command: ``` $ bright ops show rule TEST TEST1 Command Error: http(s) request error event called Error Details: HTTP(S) client encountered an error. Request could not...
Plugin validation fails for command with chainedHandlers defined with message "CmdError: Command name = '***' has no 'handler' property", resulting in plugin commands not available.
I create a profileInfo instance: ``` const profInfo = new ProfileInfo("zowe", { requireKeytar: () => getNodeModule("keytar")! }); ``` Next attempt to read a default profile: ``` const profAttrs = profInfo.getDefaultProfile("sample");...