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

Function promptForRequiredStringField

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

Source from the content-addressed store, hash-verified

76}
77
78export async function promptForRequiredStringField({
79 label,
80 defaultValue,
81 customValidate,
82}: {
83 label: string
84 defaultValue?: string
85 customValidate?: StringFieldCustomValidateFn
86}): Promise<string> {
87 return promptForStringField({ label, secret: false, required: true, defaultValue, customValidate })
88}
89
90export async function promptForOptionalStringField({
91 label,

Callers 15

promptForFieldsMysqlFunction · 0.90
promptForFieldsMindsdbFunction · 0.90
promptForPasswordAuthFunction · 0.90
promptForIamRoleAuthFunction · 0.90
promptForFieldsRedshiftFunction · 0.90
promptForPasswordAuthFunction · 0.90
promptForOauthAuthFunction · 0.90
promptForFieldsTrinoFunction · 0.90
promptForFieldsAlloydbFunction · 0.90

Calls 1

promptForStringFieldFunction · 0.85

Tested by

no test coverage detected