MCPcopy Create free account
hub / github.com/deepnote/deepnote / promptForOptionalSecretField

Function promptForOptionalSecretField

packages/cli/src/utils/inquirer.ts:146–156  ·  view source on GitHub ↗
({
  label,
  defaultValue,
  customValidate,
}: {
  label: string
  defaultValue?: string
  customValidate?: StringFieldCustomValidateFn
})

Source from the content-addressed store, hash-verified

144}
145
146export async function promptForOptionalSecretField({
147 label,
148 defaultValue,
149 customValidate,
150}: {
151 label: string
152 defaultValue?: string
153 customValidate?: StringFieldCustomValidateFn
154}): Promise<string> {
155 return promptForStringField({ label, secret: true, required: false, defaultValue, customValidate })
156}
157
158export async function promptForOptionalNumberField({
159 label,

Callers 4

promptForSslFieldsFunction · 0.90
promptForFieldsMongodbFunction · 0.90

Calls 1

promptForStringFieldFunction · 0.85

Tested by

no test coverage detected