Skip to content

Commit c8400e4

Browse files
committed
feat: update generator to update skyward author
1 parent f0ec58a commit c8400e4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generator/cli.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ if (options.configFile) {
215215
return true;
216216
},
217217
});
218+
} else if (options.author.includes('TTT')) {
219+
const author = await input({
220+
message: 'Skyward proposal, please provide the name this proposal should be attributed to',
221+
validate(input) {
222+
if (input.length == 0) return "Author name can't be empty";
223+
return true;
224+
},
225+
});
226+
options.author = options.author.replace('TTT', author);
218227
}
219228

220229
if (!options.discussion && whitelabelPools.length == 0) {

0 commit comments

Comments
 (0)