From 2c1897317a6162c56fec0803ee7cf86922c6760a Mon Sep 17 00:00:00 2001 From: KaKi87 Date: Mon, 29 Jan 2024 02:04:10 +0100 Subject: [PATCH] :sparkles: Allow 'kiwi' command without 'url' parameter --- main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index e02dfa7..1ca6f8c 100644 --- a/main.js +++ b/main.js @@ -266,8 +266,11 @@ const program .command('kiwi') .description('Launch Kiwi browser') - .argument('', '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')