Skip to content

Commit 67bbd2d

Browse files
authored
update documentation and deprecation message (#2672)
1 parent d50c3a4 commit 67bbd2d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/man_pages/project/testing/run-android.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Start a default emulator if none are running, or run application on all connecte
1010
Runs your project on a connected Android device or in a native Android emulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
1111

1212
### Options
13-
* `--available-devices` - Shows a list of available emulators to be started and a list of already connected devices.
1413
* `--device` - Specifies a connected device/emulator to start and run the app.
1514
* `--emulator` - If set, runs the app in all available and configured android emulators. It will start an emulator if none are already running.
1615
* `--justlaunch` - If set, does not print the application output in the console.
@@ -23,7 +22,7 @@ Runs your project on a connected Android device or in a native Android emulator,
2322
* `--key-store-alias-password` - Provides the password for the alias specified with `--key-store-alias-password`. You can use the `--key-store-*` options along with `--release` to produce a signed release build. You need to specify all `--key-store-*` options.
2423

2524
### Attributes
26-
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns run android --available-devices`
25+
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns device android --available-devices`
2726

2827
<% if(isHtml) { %>
2928
### Prerequisites:

docs/man_pages/project/testing/run-ios.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Runs your project on a connected iOS device or in the iOS Simulator, if configur
1414
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system. <% if(isHtml) { %>For more information, see [Obtaining Signing Identities and Downloading Provisioning Profiles](https://developer.apple.com/library/mac/recipes/xcode_help-accounts_preferences/articles/obtain_certificates_and_provisioning_profiles.html).<% } %>
1515

1616
### Options
17-
* `--available-devices` - Shows a list of available simulators to be started and a list of already connected devices.
1817
* `--device` - Specifies a connected device/simulator to start and run the app.
1918
* `--emulator` - If set, runs the app in all available and configured ios simulators. It will start a simulator if none are already running.
2019
* `--justlaunch` - If set, does not print the application output in the console.
@@ -23,7 +22,7 @@ Runs your project on a connected iOS device or in the iOS Simulator, if configur
2322
* `--release` - If set, produces a release build. Otherwise, produces a debug build.
2423

2524
### Attributes
26-
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns run ios --available-devices`
25+
* `<Device ID>` is the index or `Device Identifier` of the target device as listed by `$ tns device ios --available-devices`
2726
<% } %>
2827
<% if(isHtml) { %>
2928
### Prerequisites

lib/commands/emulate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class EmulateCommandBase {
77
}
88

99
public async executeCore(args: string[]): Promise<void> {
10-
this.$logger.warn(`Emulate command is deprecated and will soon be removed. Please use "tns run <platform>" instead. All options available for emulate are present in "tns run" command.`);
10+
this.$logger.warn(`Emulate command is deprecated and will soon be removed. Please use "tns run <platform>" instead. All options available for "tns emulate" are present in "tns run" command. To run on all available emulators, use "tns run <platform> --emulator".`);
1111
this.$options.emulator = true;
1212
const appFilesUpdaterOptions: IAppFilesUpdaterOptions = { bundle: this.$options.bundle, release: this.$options.release };
1313
const emulateOptions: IEmulatePlatformOptions = {

0 commit comments

Comments
 (0)