MCPcopy
hub / github.com/ionic-team/capacitor / getName

Function getName

cli/src/tasks/init.ts:72–87  ·  view source on GitHub ↗
(config: Config, name: string)

Source from the content-addressed store, hash-verified

70}
71
72async function getName(config: Config, name: string) {
73 if (!name) {
74 const answers = await logPrompt(
75 `${c.strong(`What is the name of your app?`)}\n` +
76 `This should be a human-friendly app name, like what you'd see in the App Store.`,
77 {
78 type: 'text',
79 name: 'name',
80 message: `Name`,
81 initial: config.app.appName ? config.app.appName : (config.app.package.name ?? 'App'),
82 },
83 );
84 return answers.name;
85 }
86 return name;
87}
88
89async function getAppId(config: Config, id: string) {
90 if (!id) {

Callers 1

initCommandFunction · 0.85

Calls 1

logPromptFunction · 0.90

Tested by

no test coverage detected