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
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`
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