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

Function promptForOptionalStringPortField

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

Source from the content-addressed store, hash-verified

116}
117
118export async function promptForOptionalStringPortField({
119 label,
120 defaultValue,
121}: {
122 label: string
123 defaultValue?: string
124}): Promise<string> {
125 return promptForStringField({
126 label,
127 secret: false,
128 required: false,
129 defaultValue,
130 customValidate: stringPortValidate,
131 })
132}
133
134export async function promptForRequiredSecretField({
135 label,

Callers 3

promptForFieldsRedshiftFunction · 0.90
promptForFieldsTrinoFunction · 0.90
promptForFieldsMongodbFunction · 0.90

Calls 1

promptForStringFieldFunction · 0.85

Tested by

no test coverage detected