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

Function promptForOptionalStringField

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

Source from the content-addressed store, hash-verified

88}
89
90export async function promptForOptionalStringField({
91 label,
92 defaultValue,
93 customValidate,
94}: {
95 label: string
96 defaultValue?: string
97 customValidate?: StringFieldCustomValidateFn
98}): Promise<string> {
99 return promptForStringField({ label, secret: false, required: false, defaultValue, customValidate })
100}
101
102export async function promptForRequiredStringPortField({
103 label,

Callers 5

promptForSslFieldsFunction · 0.90
promptForFieldsMongodbFunction · 0.90
promptForFieldsAthenaFunction · 0.90
promptForFieldsSnowflakeFunction · 0.90

Calls 1

promptForStringFieldFunction · 0.85

Tested by

no test coverage detected