Skip to content

Commit e5c86ff

Browse files
authored
feat(cockpit): display token scopes separately (#2928)
1 parent 81fd72a commit e5c86ff

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

internal/namespaces/cockpit/v1beta1/custom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func GetCommands() *core.Commands {
1717

1818
cmds.MustFind("cockpit", "cockpit", "activate").Override(cockpitCockpitActivateBuilder)
1919
cmds.MustFind("cockpit", "cockpit", "deactivate").Override(cockpitCockpitDeactivateBuilder)
20+
cmds.MustFind("cockpit", "token", "get").Override(cockpitTokenGetBuilder)
2021

2122
return cmds
2223
}

internal/namespaces/cockpit/v1beta1/custom_cockpit.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,16 @@ func cockpitCockpitDeactivateBuilder(command *core.Command) *core.Command {
120120
}
121121
return command
122122
}
123+
124+
func cockpitTokenGetBuilder(c *core.Command) *core.Command {
125+
c.View = &core.View{
126+
Sections: []*core.ViewSection{
127+
{
128+
Title: "Scopes",
129+
FieldName: "Scopes",
130+
},
131+
},
132+
}
133+
134+
return c
135+
}

0 commit comments

Comments
 (0)