Skip to content

Commit fd8af6b

Browse files
authored
Add circleci-cli option to set telemetry. (#7)
* This helps avoid an interactive prompt. * Bump circleci-cli version.
1 parent b4959c8 commit fd8af6b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/circleci-cli/devcontainer-feature.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "CircleCI CLI",
33
"id": "circleci-cli",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"description": "Install the CircleCI CLI. Also installs the CircleCI extension for vscode.",
66
"options": {
77
"version": {
@@ -18,6 +18,14 @@
1818
"default": true,
1919
"description": "Attempt to install shell completions for bash & zsh.",
2020
"type": "boolean"
21+
},
22+
"telemetry": {
23+
"default": "disable",
24+
"type": "string",
25+
"enum": [
26+
"disable",
27+
"enable"
28+
]
2129
}
2230
},
2331
"customizations": {

src/circleci-cli/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ check_packages curl ca-certificates bash-completion
3131

3232
curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash
3333

34+
# Set telemetry or ignore if the subcommand does not exist.
35+
circleci --skip-update-check telemetry $TELEMETRY || true
36+
3437
if [ "$COMPLETIONS" = "true" ]; then {
3538
# circleci bash completion
3639
mkdir -p /etc/bash_completion.d

0 commit comments

Comments
 (0)