(config: Config, name: string)
| 70 | } |
| 71 | |
| 72 | async 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 | |
| 89 | async function getAppId(config: Config, id: string) { |
| 90 | if (!id) { |
no test coverage detected