INNER CODE UNIT · TypeScript

appendTransportInfo

yume-chan/ya-webadb · apps/cli/src/index.ts:68

        function appendTransportInfo(key: string, value: string | undefined) {
            if (value) {
                return ` ${key}:${value}`;
            }
            return "";
        }

        const client = createClient();
        const devices = await client.getDevices();
        for (const device of devices) {
            if (options.l) {
                console.log(
                    // prettier-ignore
                    `${
                        device.serial.padEnd(22)
                    }device${
                        appendTransportInfo("product", device.product)
                    }${

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…