simple check option

This commit is contained in:
anianz
2020-11-11 12:22:16 +01:00
parent b266699086
commit cbbfd94fbb
4 changed files with 67 additions and 17 deletions

View File

@@ -86,22 +86,7 @@ func main() {
fmt.Fprint(os.Stderr, out.String())
cmd = exec.Command(
"nomad",
"job",
"history",
"-json",
"-address="+config.Source.URL,
"-token="+config.Source.Token,
config.Source.Name,
)
var histResp bytes.Buffer
cmd.Stdout = &histResp
err = cmd.Run()
common.Check(err, "Error checking versions")
var history []resource.JobVersion
json.Unmarshal(histResp.Bytes(), &history)
history := common.GetHistory(config.Source)
response := Response{
Version: resource.Version{