mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat(cli): support bundle: dump healthcheck summary (#12963)
* refactor(codersdk): extract common fields from HealthReport and friends * feat(codersdk/healthsdk): add Summarize() method * feat(cli): support bundle: dump healthcheck summary
This commit is contained in:
@ -544,7 +544,7 @@ func (g *Generator) buildStruct(obj types.Object, st *types.Struct) (string, err
|
||||
tag := reflect.StructTag(st.Tag(i))
|
||||
// Adding a json struct tag causes the json package to consider
|
||||
// the field unembedded.
|
||||
if field.Embedded() && tag.Get("json") == "" && field.Pkg().Name() == "codersdk" {
|
||||
if field.Embedded() && tag.Get("json") == "" {
|
||||
extendedFields[i] = true
|
||||
extends = append(extends, field.Name())
|
||||
}
|
||||
|
Reference in New Issue
Block a user