Skip to content

Commit 2bc441e

Browse files
FatmeFatme
authored andcommitted
Merge pull request #157 from NativeScript/fatme/share-device-commands
Share device commands
2 parents 26edbe3 + 182d526 commit 2bc441e

File tree

3 files changed

+10
-37
lines changed

3 files changed

+10
-37
lines changed

lib/bootstrap.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ $injector.requireCommand("build", "./commands/build");
3030
$injector.requireCommand("deploy", "./commands/deploy");
3131
$injector.requireCommand("dev-post-install", "./commands/post-install");
3232
$injector.requireCommand("emulate", "./commands/emulate");
33-
$injector.requireCommand("list-devices", "./commands/list-devices");
3433

3534
$injector.require("npm", "./node-package-manager");
3635
$injector.require("lockfile", "./lockfile");

lib/commands/list-devices.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

resources/help.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ General commands:
2020
emulate Deploys the project in the native emulator for the selected target platform.
2121
run Runs your project on a connected device or in the native emulator, if configured.
2222
This is shorthand for prepare, build, and deploy.
23-
list-devices Lists all recognized connected physical or virtual device.
23+
device Lists all recognized connected physical or virtual device.
2424
feature-usage-tracking Configures anonymous feature usage tracking.
2525

2626
General options:
@@ -198,7 +198,7 @@ Platform-specific usages:
198198
$ nativescript deploy ios [--device <Device ID>]
199199

200200
Builds and deploys the project to a connected physical or virtual device.
201-
<Device ID> is the index or name of the target device as listed by $ tns list-devices.
201+
<Device ID> is the index or name of the target device as listed by $ tns device.
202202

203203
Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
204204

@@ -217,7 +217,7 @@ Platform-specific usage:
217217
$ nativescript run ios [--device <Device ID>] [--emulator]
218218

219219
Runs your project on a connected device or in the native emulator, if configured. This is shorthand for prepare, build, and deploy.
220-
<Device ID> is the index or name of the target device as listed by $ tns list-devices.
220+
<Device ID> is the index or name of the target device as listed by $ tns device.
221221

222222
Before building for the Android emulator, verify that you have met the following requirements.
223223
You have added the file paths to the following directories from the Android SDK to your PATH environment variable.
@@ -258,17 +258,17 @@ For iOS, this operation runs your project in the iOS Simulator. Before running t
258258

259259
--[/]--
260260

261-
--[list-devices]--
261+
--[device]--
262262

263263
Usage:
264-
$ tns list-devices [<Platform>]
265-
$ nativescript list-devices [<Platform>]
264+
$ tns device [<Platform>]
265+
$ nativescript device [<Platform>]
266266

267267
Platform-specific usage:
268-
$ tns list-devices android
269-
$ tns list-devices ios
270-
$ nativescript list-devices android
271-
$ nativescript list-devices ios
268+
$ tns device android
269+
$ tns device ios
270+
$ nativescript device android
271+
$ nativescript device ios
272272

273273
Lists all recognized connected devices with serial number and index, grouped by platform. The Telerik NativeScript CLI recognizes running Android virtual devices as connected devices.
274274

0 commit comments

Comments
 (0)