-
Notifications
You must be signed in to change notification settings - Fork 144
/
main.go
31 lines (24 loc) · 687 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2021-Present The Zarf Authors
// Package main is the entrypoint for the Zarf binary.
package main
import (
"context"
"embed"
"os/signal"
"syscall"
"github.com/defenseunicorns/zarf/src/cmd"
"github.com/defenseunicorns/zarf/src/config"
"github.com/defenseunicorns/zarf/src/pkg/packager/lint"
)
//go:embed cosign.pub
var cosignPublicKey string
//go:embed zarf.schema.json
var zarfSchema embed.FS
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
config.CosignPublicKey = cosignPublicKey
lint.ZarfSchema = zarfSchema
cmd.Execute(ctx)
}