✨ Allow 'kiwi' command without 'url' parameter
This commit is contained in:
parent
f9dd80307a
commit
2c1897317a
1 changed files with 5 additions and 2 deletions
7
main.js
7
main.js
|
@ -266,8 +266,11 @@ const
|
||||||
program
|
program
|
||||||
.command('kiwi')
|
.command('kiwi')
|
||||||
.description('Launch Kiwi browser')
|
.description('Launch Kiwi browser')
|
||||||
.argument('<url>', 'Website URL')
|
.argument('[url]', 'Website URL')
|
||||||
.action(url => adb(`am start -a android.intent.action.VIEW -d ${url} -t text/plain com.kiwibrowser.browser`));
|
.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
|
program
|
||||||
.command('notifications')
|
.command('notifications')
|
||||||
.description('Show notification history')
|
.description('Show notification history')
|
||||||
|
|
Loading…
Reference in a new issue