Skip to content

Commit 235cc8a

Browse files
Error-reporting command
Add error-reporting command that should be used in a similar manner as feature-usage-tracking command. The difference is that during installation, the exceptions tracking will be enabled without prompt (keep current behavior that we are tracking exceptions). It can be disabled later by using `$ tns error-reporting disable`. Refactor analytics-service in order to "hide" some methods from the interface and to simplify adding of new analytics commands and variables. **Rename feature-usage-tracking to usage-reporting**
1 parent 06d86c6 commit 235cc8a

13 files changed

+72
-104
lines changed

docs/man_pages/general/autocomplete-disable.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Command | Description
1616
[autocomplete](autocomplete.html) | Asks for confirmation if command line autocompletion should be enabled for bash and zsh.
1717
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
1818
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
19-
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
19+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
20+
[error-reporting](error-reporting.html) | Configures anonymous error reporting for the NativeScript CLI.
2021
[help](help.html) | Lists the available commands or shows information about the selected command.
2122
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2223
<% } %>

docs/man_pages/general/autocomplete-enable.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Command | Description
1616
[autocomplete](autocomplete.html) | Asks for confirmation if command line autocompletion should be enabled for bash and zsh.
1717
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
1818
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
19-
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
19+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
20+
[error-reporting](error-reporting.html) | Configures anonymous error reporting for the NativeScript CLI.
2021
[help](help.html) | Lists the available commands or shows information about the selected command.
2122
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2223
<% } %>

docs/man_pages/general/autocomplete-status.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Command | Description
1515
[autocomplete](autocomplete.html) | Prints your current command-line completion settings. If disabled, prompts you to enable it.
1616
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
1717
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
18-
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
18+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
19+
[error-reporting](error-reporting.html) | Configures anonymous error reporting for the NativeScript CLI.
1920
[help](help.html) | Lists the available commands or shows information about the selected command.
2021
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2122
<% } %>

docs/man_pages/general/autocomplete.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Command | Description
2626
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
2727
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2828
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
29-
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
29+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
30+
[error-reporting](error-reporting.html) | Configures anonymous error reporting for the NativeScript CLI.
3031
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
3132
<% } %>

docs/man_pages/general/doctor.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Checks your system for configuration problems which might prevent the NativeScri
1212

1313
Command | Description
1414
----------|----------
15-
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript CLI.
15+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
16+
[error-reporting](error-reporting.html) | Configures anonymous error reporting for the NativeScript CLI.
1617
[autocomplete](autocomplete.html) | Prints your current command-line completion settings. If disabled, prompts you to enable it.
1718
[help](help.html) | Lists the available commands or shows information about the selected command.
1819
<% } %>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
error-reporting
2+
==========
3+
4+
Usage | Synopsis
5+
------|-------
6+
General | `$ tns error-reporting [<Command>]`
7+
8+
Configures anonymous error reporting for the NativeScript CLI.
9+
10+
All data gathered is used strictly for improving the product and will never be used to identify or contact you.
11+
12+
### Attributes
13+
`<Command>` extends the `error-reporting` command. You can set the following values for this attribute.
14+
* `status` - Shows the current configuration for anonymous error reporting for the NativeScript CLI.
15+
* `enable` - Enables anonymous error reporting.
16+
* `disable` - Disables anonymous error reporting.
17+
18+
<% if(isHtml) { %>
19+
### Related Commands
20+
21+
Command | Description
22+
----------|----------
23+
[usage-reporting](usage-reporting.html) | Configures anonymous usage reporting for the NativeScript CLI.
24+
[autocomplete](autocomplete.html) | Enables command-line completion for bash and zsh shells.
25+
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
26+
[autocomplete-enable](autocomplete-enable.html) | Enables command-line completion for bash and zsh shells.
27+
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
28+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
29+
<% } %>

docs/man_pages/general/feature-usage-tracking-disable.md

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

docs/man_pages/general/feature-usage-tracking-enable.md

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

docs/man_pages/general/feature-usage-tracking-status.md

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

docs/man_pages/general/feature-usage-tracking.md

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

0 commit comments

Comments
 (0)