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

Function checkAppName

cli/src/common.ts:138–144  ·  view source on GitHub ↗
(config: Config, name: string)

Source from the content-addressed store, hash-verified

136}
137
138export async function checkAppName(config: Config, name: string): Promise<string | null> {
139 // We allow pretty much anything right now, have fun
140 if (!name?.length) {
141 return `Must provide an app name. For example: 'Spacebook'`;
142 }
143 return null;
144}
145
146export async function wait(time: number): Promise<void> {
147 return new Promise((resolve) => setTimeout(resolve, time));

Callers 2

initCommandFunction · 0.90
checkAppConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected