You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit afafa57
Browse filesBrowse the repository at this point in the historyBrowse files
feat(@angular/cli): add --global option to ng analytics command
With this change we add a `--global` option to `ng analytics` command.
BREAKING CHANGE:
Several changes to the `ng analytics` command syntax.
- `ng analytics project <setting>` has been replaced with `ng analytics <setting>`
- `ng analytics <setting>` has been replaced with `ng analytics <setting> --global`
Copy file name to clipboardExpand all lines: docs/design/analytics.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ See [the `debug` NPM library](https://www.npmjs.com/package/debug) for more info
111
111
112
112
There are 2 ways of disabling usage analytics:
113
113
114
-
1. using `ng analytics off` (or changing the global configuration file yourself). This is the same
114
+
1. using `ng analytics off --global` (or changing the global configuration file yourself). This is the same
115
115
as answering "No" to the prompt.
116
116
1. There is an `NG_CLI_ANALYTICS` environment variable that overrides the global configuration.
117
117
That flag is a string that represents the User ID. If the string `"false"` is used it will
The value of `setting-or-project` is one of the following.
1
+
The value of `setting` is one of the following.
2
2
3
3
-`on`: Enables analytics gathering and reporting for the user.
4
4
-`off`: Disables analytics gathering and reporting for the user.
5
5
-`ci`: Enables analytics and configures reporting for use with Continuous Integration,
6
6
which uses a common CI user.
7
7
-`prompt`: Prompts the user to set the status interactively.
8
-
-`project`: Sets the default status for the project to the `project-setting` value, which can be any of the other values. The `project-setting` argument is ignored for all other values of `setting_or_project`.
9
8
10
9
For further details, see [Gathering an Viewing CLI Usage Analytics](cli/usage-analytics-gathering).
'The value of `setting-or-project` is one of the following.\n\n- `on`: Enables analytics gathering and reporting for the user.\n- `off`: Disables analytics gathering and reporting for the user.\n- `ci`: Enables analytics and configures reporting for use with Continuous Integration,\n which uses a common CI user.\n- `prompt`: Prompts the user to set the status interactively.\n- `project`: Sets the default status for the project to the `project-setting` value, which can be any of the other values. The `project-setting` argument is ignored for all other values of `setting_or_project`.\n\nFor further details, see [Gathering an Viewing CLI Usage Analytics](cli/usage-analytics-gathering).\n',
11
+
'The value of `setting` is one of the following.\n\n- `on`: Enables analytics gathering and reporting for the user.\n- `off`: Disables analytics gathering and reporting for the user.\n- `ci`: Enables analytics and configures reporting for use with Continuous Integration,\n which uses a common CI user.\n- `prompt`: Prompts the user to set the status interactively.\n\nFor further details, see [Gathering an Viewing CLI Usage Analytics](cli/usage-analytics-gathering).\n',
12
12
'options': [
13
13
{
14
-
'name': 'help',
14
+
'name': 'global',
15
15
'type': 'boolean',
16
-
'description': 'Shows a help message for this command in the console.',
16
+
'aliases': ['g'],
17
+
'default': false,
18
+
'description': "Access the global configuration in the caller's home directory.",
17
19
},
18
20
{
19
-
'name': 'project-setting',
20
-
'type': 'string',
21
-
'enum': ['on','off','prompt'],
22
-
'description': 'Sets the default analytics enablement status for the project.',
23
-
'positional': 1,
21
+
'name': 'help',
22
+
'type': 'boolean',
23
+
'description': 'Shows a help message for this command in the console.',
24
24
},
25
25
{
26
-
'name': 'setting-or-project',
26
+
'name': 'setting',
27
27
'type': 'string',
28
28
'enum': ['on','off','ci','prompt'],
29
-
'description':
30
-
'Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.',
29
+
'description': 'Directly enables or disables all usage analytics for the user.',
0 commit comments