mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-05 09:38:50 +00:00
Standardise the names of types
Most commands use either a kind, or a more readable spelling of a kind, in their output. To make this easier, this centralises the definition of those names in one place, and lets the command implementations choose whichever they need. Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
parent
d55d185044
commit
22a5ac7f0f
19 changed files with 75 additions and 50 deletions
|
|
@ -43,8 +43,8 @@ type suspendable interface {
|
|||
}
|
||||
|
||||
type suspendCommand struct {
|
||||
object suspendable
|
||||
humanKind string
|
||||
names
|
||||
object suspendable
|
||||
}
|
||||
|
||||
func (suspend suspendCommand) run(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue