File: generate.go

package info (click to toggle)
golang-github-theupdateframework-go-tuf 2.0.2%2B0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,908 kB
  • sloc: python: 164; makefile: 89; sh: 37
file content (19 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"log"
	"os"
	"path/filepath"

	"github.com/theupdateframework/go-tuf/client/testdata/go-tuf/generator"
)

func main() {
	cwd, err := os.Getwd()
	if err != nil {
		log.Fatal(err)
	}

	generator.Generate(filepath.Join(cwd, "consistent-snapshot-false"), "../keys.json", false)
	generator.Generate(filepath.Join(cwd, "consistent-snapshot-true"), "../keys.json", true)
}