-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.go
33 lines (26 loc) · 838 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
// Copyright (c) 2021-2023 北京渠成软件有限公司(Beijing Qucheng Software Co., Ltd. www.qucheng.com) All rights reserved.
// Use of this source code is covered by the following dual licenses:
// (1) Z PUBLIC LICENSE 1.2 (ZPL 1.2)
// (2) Affero General Public License 3.0 (AGPL 3.0)
// license that can be found in the LICENSE file.
//go:generate hack/scripts/getk3s.sh
//go:generate go run internal/pkg/cli/codegen/codegen.go
package main
import (
"log"
"os"
"github.com/docker/docker/pkg/reexec"
"github.com/easysoft/qcadmin/cmd"
"github.com/easysoft/qcadmin/cmd/boot"
"github.com/easysoft/qcadmin/internal/pkg/cli/kubectl"
)
func init() {
reexec.Register("kubectl", kubectl.Main)
}
func main() {
if err := boot.OnBoot(); err != nil {
log.Fatalf("failed to boot, err: %s", err)
os.Exit(1)
}
cmd.Execute()
}