-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmain.go
34 lines (27 loc) · 920 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
32
33
34
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License 2.0;
// you may not use this file except in compliance with the Elastic License 2.0.
package main
import (
"os"
"github.com/elastic/elastic-agent-changelog-tool/cmd"
"github.com/elastic/elastic-agent-changelog-tool/internal/settings"
"github.com/spf13/afero"
)
func main() {
settings.Init()
appFs := afero.NewOsFs()
rootCmd := cmd.RootCmd()
rootCmd.AddCommand(cmd.BuildCmd(appFs))
rootCmd.AddCommand(cmd.ChangelogLintCmd(appFs))
rootCmd.AddCommand(cmd.CleanupCmd(appFs))
rootCmd.AddCommand(cmd.FindPRCommand(appFs))
rootCmd.AddCommand(cmd.NewCmd())
rootCmd.AddCommand(cmd.PrHasFragmentCommand(appFs))
rootCmd.AddCommand(cmd.RenderCmd(appFs))
rootCmd.AddCommand(cmd.VersionCmd())
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}