Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOverridePromptConnProps<SessCfgType>

Interface for overriding the prompting behavior of ConnectionPropsForSessCfg.addPropsOrPrompt()

export
interface

IOverridePromptConnProps

Type parameters

Hierarchy

  • IOverridePromptConnProps

Index

Properties

Optional argumentName

argumentName: string

Indicates the CLI argument that should be used to populate the property on the session. If not supplied, uses a CLI argument that matches the session property name.

propertiesOverridden

propertiesOverridden: (keyof SessCfgType & string)[]

Indicates the prompting fields the property should override. For example, if the property should be the preferred method of authentication, then it should override user and password. Then, if the property is on the session, it will not prompt for user and password. Prompting logic is only in place for host, port, user, and password, but cert, certKey, tokenType, and tokenValue may also need to be overridden.

propertyName

propertyName: string

Indicates the session property that should be considered in the prompting logic.

Optional propsToPromptFor

propsToPromptFor: (keyof SessCfgType & string)[]

Allows passing additional properties for which to prompt. Used in cases of an incorrect or missing key passphrase.

Generated using TypeDoc