Skip to content

Commit

Permalink
fix: Format asking for repository name with username (#59)
Browse files Browse the repository at this point in the history
This patch fixes the string for asking for the repository name by
actually formatting the previously passed "username" into "$username"
and making the parenthesis wrap the url.

Signed-off-by: AlexNg <[email protected]>
  • Loading branch information
caffeine-addictt authored May 29, 2024
1 parent e43f4cd commit e1c693f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const fetchInfo = async (cleanup) => {
},
]);
const username = await question('Username? (https://github.com/<username>)\n=> ');
const repository = await question('Repository? ((https://github.com/$username/<repo>\n=> ');
const repository = await question(`Repository? (https://github.com/${username}/<repo>)\n=> `);
const proj_name = await question('Project name?\n=> ');
const proj_short_desc = await question('Short description?\n=> ');
const proj_long_desc = await question('Long description?\n=> ');
Expand Down
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const fetchInfo = async (
'Username? (https://github.com/<username>)\n=> ',
);
const repository = await question(
'Repository? ((https://github.com/$username/<repo>\n=> ',
`Repository? (https://github.com/${username}/<repo>)\n=> `,
);
const proj_name = await question('Project name?\n=> ');
const proj_short_desc = await question('Short description?\n=> ');
Expand Down

0 comments on commit e1c693f

Please sign in to comment.