FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackit-cli/main.go at main · stackitcloud/stackit-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackitcloud
/
stackit-cli
Public
Notifications
You must be signed in to change notification settings
Fork
49
Star
163
Code
Issues
11
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
stackit-cli
/
main.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (33 loc) · 761 Bytes
Breadcrumbs
stackit-cli
/
main.go
Copy path
File metadata and controls
38 lines (33 loc) · 761 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
38
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"
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
)
// 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
: utils.
OsFS
{},
Args
:
os
.
Args
[
1
:],
}
if
!
cmd
.
Execute
(
&
params
) {
os
.
Exit
(
1
)
}
}
Back
|
FazBrowse Home
|
New Git URL