Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compute): add metadata subcommand #1013

Merged
merged 19 commits into from
Oct 31, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
492021f
feat(telemetry): add telemetry command
Integralist Sep 18, 2023
a3868f1
refactor(telemetry): enable by default
Integralist Sep 20, 2023
38d64bc
doc(DEVELOP): clarify the app config flows
Integralist Sep 21, 2023
ac7293e
doc(config): annotate File fields
Integralist Sep 21, 2023
e241978
feat: display telemetry to user on first run after install or update
Integralist Sep 21, 2023
3c632e1
fix(ci): add /dev/null equivalent for Windows
Integralist Sep 21, 2023
c0586e0
refactor: rename telemetry wasm-metadata
Integralist Sep 26, 2023
8d6673f
refactor: move `telemetry` command to `compute metadata`
Integralist Sep 26, 2023
58c96f4
refactor(compute/metadata): display updated config settings
Integralist Oct 2, 2023
849e7db
fix(metadata): machine info must be opt-in
Integralist Oct 5, 2023
cc4d645
fix(compute/metadata): reference correct error type
Integralist Oct 10, 2023
7551b2d
remove(telemetry): command moved to compute metadata.
Integralist Oct 25, 2023
9f5b4dd
fix(compute/build): remove unused arg
Integralist Oct 31, 2023
265cc0f
fix(app): update commandCollectsData() list
Integralist Oct 31, 2023
fc49e5b
feat: only record metadata for items marked as enabled
Integralist Oct 31, 2023
4afd2ee
fix(app): hide metadata message unless the user has opted into data c…
Integralist Oct 31, 2023
3705675
refactor: messaging to include additional links
Integralist Oct 31, 2023
00feb73
refactor(compute/metadata): make a hidden command for now
Integralist Oct 31, 2023
e35ebba
refactor: move sdk data into package_info
Integralist Oct 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc(config): annotate File fields
  • Loading branch information
Integralist committed Oct 31, 2023

Verified

This commit was signed with the committer’s verified signature.
abernix Jesse Rosenberger
commit ac7293e08928ab55bbefe89b4cde866937636c6c
27 changes: 18 additions & 9 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -165,15 +165,24 @@ func ensureConfigDirExists(path string) error {

// File represents our application toml configuration.
type File struct {
CLI CLI `toml:"cli"`
ConfigVersion int `toml:"config_version"`
Fastly Fastly `toml:"fastly"`
Telemetry Telemetry `toml:"telemetry"`
Language Language `toml:"language"`
Profiles Profiles `toml:"profile"`
StarterKits StarterKitLanguages `toml:"starter-kits"`
Viceroy Versioner `toml:"viceroy"`
WasmTools Versioner `toml:"wasm-tools"`
// CLI represents CLI specific configuration.
CLI CLI `toml:"cli"`
// ConfigVersion is the version of the config.
ConfigVersion int `toml:"config_version"`
// Fastly represents fastly specific configuration.
Fastly Fastly `toml:"fastly"`
// Telemetry represents what telemetry data will be recorded.
Telemetry Telemetry `toml:"telemetry"`
// Language represents C@E language specific configuration.
Language Language `toml:"language"`
// Profiles represents multiple profile accounts.
Profiles Profiles `toml:"profile"`
// StarterKitLanguages represents language specific starter kits.
StarterKits StarterKitLanguages `toml:"starter-kits"`
// Viceroy represents viceroy specific configuration.
Viceroy Versioner `toml:"viceroy"`
// WasmTools represents wasm-tools specific configuration.
WasmTools Versioner `toml:"wasm-tools"`

// We store off a possible legacy configuration so that we can later extract
// the relevant email and token values that may pre-exist.