feat(plan): allow build plan to be output as YAML or JSON

This commit is contained in:
2021-10-09 20:25:12 +01:00
parent b4c5184cef
commit 1bbfe5d3ea
7 changed files with 71 additions and 30 deletions

View File

@@ -22,8 +22,8 @@ const GitHub Type = "github"
// Repository represents basic information about a repository with helper
// methods to get various pieces of information from it.
type Repository struct {
Type Type `yaml:"type,omitempty"`
Source string `yaml:"source,omitempty"`
Type Type `yaml:"type,omitempty" json:"type,omitempty"`
Source string `yaml:"source,omitempty" json:"source,omitempty"`
}
func NewGitHub(ownerAndName string) (*Repository, error) {