-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathmain.go
More file actions
37 lines (32 loc) · 704 Bytes
/
main.go
File metadata and controls
37 lines (32 loc) · 704 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
34
35
36
37
package main
import (
"os"
"github.com/stackitcloud/stackit-cli/internal/cmd"
"github.com/stackitcloud/stackit-cli/internal/pkg/config"
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
)
// These values are overwritten by GoReleaser at build time
var (
version = "DEV"
date = "UNKNOWN"
)
func main() {
// Set up configuration files
config.InitConfig()
printer := print.NewPrinter(
os.Stdin,
os.Stdout,
os.Stderr,
)
params := types.CmdParams{
Printer: printer,
CliVersion: version,
Date: date,
Fs: os.DirFS("/"),
Args: os.Args[1:],
}
if !cmd.Execute(¶ms) {
os.Exit(1)
}
}