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

Function promptToSignup

cli/src/tasks/init.ts:159–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159async function promptToSignup(): Promise<boolean> {
160 const answers = await logPrompt(
161 `Join the Ionic Community! 💙\n` +
162 `Connect with millions of developers on the Ionic Forum and get access to live events, news updates, and more.`,
163 {
164 type: 'confirm',
165 name: 'create',
166 message: `Create free Ionic account?`,
167 initial: true,
168 },
169 );
170
171 if (answers.create) {
172 open(`http://ionicframework.com/signup?source=capacitor`);
173 }
174 return answers.create;
175}

Callers 1

runMergeConfigFunction · 0.85

Calls 2

logPromptFunction · 0.90
openFunction · 0.85

Tested by

no test coverage detected