🎨 Optimizing the user prompts during command usage
This commit is contained in:
2
bin/options/icon.ts
vendored
2
bin/options/icon.ts
vendored
@@ -22,7 +22,7 @@ export async function handleIcon(options: PakeAppOptions, url: string) {
|
||||
}
|
||||
|
||||
export async function getDefaultIcon() {
|
||||
logger.info('You have not provided an app icon, use the default icon.(use --icon option to assign an icon)')
|
||||
logger.info('You haven\'t provided an app icon, so the default icon will be used. To assign a custom icon, please use the --icon option.')
|
||||
let iconPath = 'src-tauri/icons/icon.icns';
|
||||
if (IS_WIN) {
|
||||
iconPath = 'src-tauri/png/icon_256.ico';
|
||||
|
||||
2
bin/options/index.ts
vendored
2
bin/options/index.ts
vendored
@@ -11,7 +11,7 @@ export default async function handleOptions(options: PakeCliOptions, url: string
|
||||
};
|
||||
|
||||
if (!appOptions.name) {
|
||||
appOptions.name = await promptText('please input your application name', getDomain(url));
|
||||
appOptions.name = await promptText('Please enter the name of your application.', getDomain(url));
|
||||
}
|
||||
|
||||
appOptions.identifier = getIdentifier(appOptions.name, url);
|
||||
|
||||
Reference in New Issue
Block a user