v0/client/testdata/go-tuf/generate.go
raw| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "log" |
| 5 | "os" |
| 6 | "path/filepath" |
| 7 | |
| 8 | "github.com/theupdateframework/go-tuf/client/testdata/go-tuf/generator" |
| 9 | ) |
| 10 | |
| 11 | func main() { |
| 12 | cwd, err := os.Getwd() |
| 13 | if err != nil { |
| 14 | log.Fatal(err) |
| 15 | } |
| 16 | |
| 17 | generator.Generate(filepath.Join(cwd, "consistent-snapshot-false"), "../keys.json", false) |
| 18 | generator.Generate(filepath.Join(cwd, "consistent-snapshot-true"), "../keys.json", true) |
| 19 | } |