set yaml/json tags for option structs

This commit is contained in:
Cory Bennett
2017-08-27 20:46:25 -07:00
parent c89f11d5b5
commit f52d2c472a
30 changed files with 116 additions and 122 deletions
+3 -3
View File
@@ -12,9 +12,9 @@ import (
)
type LabelsAddOptions struct {
GlobalOptions `yaml:",inline" figtree:",inline"`
Issue string
Labels []string
GlobalOptions `yaml:",inline" json:",inline" figtree:",inline"`
Issue string `yaml:"issue,omitempty" json:"issue,omitempty"`
Labels []string `yaml:"labels,omitempty" json:"labels,omitempty"`
}
func CmdLabelsAddRegistry(fig *figtree.FigTree, o *oreo.Client) *CommandRegistryEntry {