MCPcopy Create free account
hub / github.com/firebase/firebase-tools / input

Function input

src/prompt.ts:64–74  ·  view source on GitHub ↗
(opts: InputConfig | string)

Source from the content-addressed store, hash-verified

62export async function input(opts: InputConfig): Promise<string>;
63
64export async function input(opts: InputConfig | string): Promise<string> {
65 if (typeof opts === "string") {
66 opts = { message: opts };
67 } else {
68 const { shouldReturn, value } = guard(opts);
69 if (shouldReturn) {
70 return value;
71 }
72 }
73 return inquirer.input(opts);
74}
75
76/**
77 * Options for the confirm function.

Callers 15

promptForDirectoryFunction · 0.90
loginRemotelyFunction · 0.90
promptTextFunction · 0.90
doSetupFunction · 0.90
doSetupFunction · 0.90
askQuestionsFunction · 0.90
askQuestionsFunction · 0.90
askQuestionsFunction · 0.90
initNewCodebaseFunction · 0.90
initIndexesFunction · 0.90
initRulesFunction · 0.90
askQuestionsFunction · 0.90

Calls 1

guardFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…