-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.go
More file actions
33 lines (26 loc) · 733 Bytes
/
main.go
File metadata and controls
33 lines (26 loc) · 733 Bytes
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
32
33
package main
import (
_ "embed"
_ "github.com/actionforge/actrun-cli/api"
"github.com/actionforge/actrun-cli/cmd"
_ "github.com/actionforge/actrun-cli/cmd"
"github.com/actionforge/actrun-cli/core"
_ "github.com/actionforge/actrun-cli/tests_unit"
"github.com/actionforge/actrun-cli/utils"
)
//go:embed actfile-schema.json
var actfileSchema []byte
func main() {
utils.ApplyLogLevel()
expired, err := core.CheckIfBuildExpired()
if err != nil {
utils.LogErr.Errorln("Error checking build expiry:", err)
return
}
if expired {
utils.LogErr.Errorln("This preview build has expired. Please download the latest version from: https://actionforge.dev")
return
}
cmd.SetActfileSchema(actfileSchema)
cmd.Execute()
}