I am recently looking into how appium works and wonder how the subcommand gets picked up by the source code.
For example these commands,
appium driver install flutter
appium driver install xcuitest
I trace it back to packages/appium/lib/main.js
then I see main
calls for init
function and pas the args. Is the args contain all the sub command
? I seem to lose track after that. Not really sure where init
is using all the sub command
and how init
works.
I would appreciate it if you share more about how main
and init
work.
Cheers!