Allow 'kiwi' command without 'url' parameter

This commit is contained in:
KaKi87 2024-01-29 02:04:10 +01:00
parent f9dd80307a
commit 2c1897317a

View file

@ -266,8 +266,11 @@ const
program
.command('kiwi')
.description('Launch Kiwi browser')
.argument('<url>', 'Website URL')
.action(url => adb(`am start -a android.intent.action.VIEW -d ${url} -t text/plain com.kiwibrowser.browser`));
.argument('[url]', 'Website URL')
.action(url => adb(url
? `am start -a android.intent.action.VIEW -d ${url} -t text/plain com.kiwibrowser.browser`
: 'monkey -p com.kiwibrowser.browser 1'
));
program
.command('notifications')
.description('Show notification history')