Skip to content

Commit 57cea7a

Browse files
Merge pull request #295 from NativeScript/vladimirov/fix-hierarchical-commands
Fix hierarchical commands
2 parents 1d7e39d + 0943630 commit 57cea7a

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

resources/help.txt

+28-10
Original file line numberDiff line numberDiff line change
@@ -561,16 +561,26 @@ Options:
561561
--[/]--
562562

563563
--[device]--
564-
565564
Usage:
566-
$ tns device [<Platform>] [--timeout <Milliseconds>]
567565
$ tns device [<Command>]
568566

569-
Platform-specific usage:
570-
$ tns device android [--timeout <Milliseconds>]
571-
$ tns device ios [--timeout <Milliseconds>]
567+
Lists all recognized connected devices with serial number and index, grouped by platform. In this version of the NativeScript CLI,
568+
you can connect only iOS and Android devices.
569+
570+
<Command> is a related command that extends the device command. You can run the following related commands:
571+
android - Lists all recognized connected Android physical and running Android virtual devices.
572+
ios - Lists all recognized connected iOS devices.
573+
log - Opens the device log stream for a selected connected device.
574+
list-applications - Lists the installed applications on all connected Android <% if(isWindows || isMacOS) { %>or iOS <%}%>devices.
575+
run - Runs the selected application on a connected Android <% if(isMacOS) { %>or iOS <%}%>device.
572576

573-
Lists all recognized connected devices with serial number and index, grouped by platform. The NativeScript CLI recognizes running Android virtual devices as connected devices.
577+
--[/]--
578+
579+
--[device|android]--
580+
Usage:
581+
$ tns device android [--timeout <Milliseconds>]
582+
583+
Lists all recognized connected physical and running virtual devices with serial number and index.
574584

575585
If a connected Android device is not shown in the list, make sure that you have installed the required Android USB drivers on your system
576586
and that USB debugging is enabled on the device.
@@ -580,10 +590,18 @@ Options:
580590
The operation will continue to wait and listen for newly connected devices and will list them
581591
after the specified time expires. If not set, the default value is 4000.
582592

583-
<Command> is a related command that extends the device command. You can run the following related commands:
584-
log - Opens the device log stream for a selected connected device.
585-
list-applications - Lists the installed applications on all connected Android or iOS devices.
586-
run - Runs the selected application on a connected Android or iOS device.
593+
--[/]--
594+
595+
--[device|ios]--
596+
Usage:
597+
$ tns device ios [--timeout <Milliseconds>]
598+
599+
Lists all recognized connected iOS devices with serial number and index.
600+
601+
Options:
602+
--timeout - Sets the time in milliseconds for the operation to search for connected devices before completing.
603+
The operation will continue to wait and listen for newly connected devices and will list them
604+
after the specified time expires. If not set, the default value is 4000.
587605

588606
--[/]--
589607

0 commit comments

Comments
 (0)