Skip to content

Commit

Permalink
feat: clear identifier with a default as fallback (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina authored Oct 4, 2024
1 parent 3416e22 commit 4555e07
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,16 @@ export async function run() {

log.info(`Creating your app at ${destinationDir}`);

const identifier = (await text({
initialValue: `com.you.${name.replaceAll("-", "")}`,
message: "What is the identifier of your app?",
placeholder: "com.yourcompany.yourapp",
validate(value: string | symbol) {
if (typeof value === "symbol") {
return `Value must be a string!`;
}
if (value.length === 0) {
return `Value is required!`;
}
},
})) as string;
const identifier =
((await text({
message: "What is the identifier of your app?",
placeholder: `com.you.${name.replaceAll("-", "")}`,
validate(value: string | symbol) {
if (typeof value === "symbol") {
return `Value must be a string!`;
}
},
})) as string) || `com.you.${name.replaceAll("-", "")}`;

const signingIdentity = (await text({
initialValue: "-",
Expand Down

0 comments on commit 4555e07

Please sign in to comment.