1
0
mirror of synced 2026-02-13 13:06:56 +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:
Michael Bridgen
2020-12-08 15:20:41 +00:00
parent d55d185044
commit 22a5ac7f0f
19 changed files with 75 additions and 50 deletions

View File

@@ -44,9 +44,8 @@ type resumable interface {
}
type resumeCommand struct {
kind string
humanKind string
object resumable
names
object resumable
}
func (resume resumeCommand) run(cmd *cobra.Command, args []string) error {