add repository address to convert command

This commit is contained in:
Brad Rydzewski 2019-07-18 18:25:29 -07:00
parent e8b24d482c
commit c50000a465
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,7 @@ var (
convert = kingpin.Command("convert", "convert the yaml file")
convertSave = convert.Flag("save", "save result to source").Short('s').Bool()
convertFile = convert.Arg("source", "source file location").Default(".drone.yml").File()
convertAddr = convert.Flag("addr", "remote repository address").String()
lint = kingpin.Command("lint", "lint the yaml file")
lintPriv = lint.Flag("privileged", "privileged mode").Short('p').Bool()
@ -107,6 +108,7 @@ func runConvert() error {
}
m := converter.Metadata{
Filename: f.Name(),
URL: *convertAddr,
}
b, err := converter.Convert(d, m)
if err != nil {