INNER CODE UNIT · TypeScript
createClient
yume-chan/ya-webadb · apps/cli/src/index.ts:51
function createClient() {
const opts: { H: string; P: number } = program.opts();
const connection = new AdbServerNodeTcpConnector({
host: opts.H,
port: opts.P,
});
const client = new AdbServerClient(connection);
return client;
}
program
.commandsGroup("general commands:")
.command("devices")
.usage("[-l]")
.description("list connected devices (-l for long output)")
.option("-l", "long output", false)
.action(async (options: { l: boolean }) => {
function appendTransportInfo(key: string, value: string | undefined) {