Skip to content

Commit bd9619f

Browse files
committed
fix(typo): fix old manage cmd
fix old manage cmd Signed-off-by: ysicing <[email protected]>
1 parent dbd062b commit bd9619f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cmd/app/market.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewCmdAppMarket(f factory.Factory) *cobra.Command {
6969
// spew.Dump(charts[it])
7070
log.Infof("select install app: %s, version: %s", color.SGreen(charts[it].Chart.Name), color.SGreen(charts[it].Chart.AppVersion))
7171
subdomain := fmt.Sprintf("%s-%s", charts[it].Chart.Name, exhash.MD5(time.Now().String())[:8])
72-
installArgs := []string{"app", "install", charts[it].Chart.Name, "--domain", subdomain, "--api-useip"}
72+
installArgs := []string{"quickon", "app", "install", charts[it].Chart.Name, "--domain", subdomain, "--api-useip"}
7373
if log.GetLevel() == logrus.DebugLevel {
7474
installArgs = append(installArgs, "--debug")
7575
}

cmd/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func newCmdInit(f factory.Factory) *cobra.Command {
101101
log.Errorf("init quickon failed, reason: %v", err)
102102
return
103103
}
104-
if err := qcexec.CommandRun(globalToolPath, "app", "install", "--name", appName, "--api-useip", fmt.Sprintf("--debug=%v", globalFlags.Debug)); err != nil {
104+
if err := qcexec.CommandRun(globalToolPath, "quickon", "app", "install", "--name", appName, "--api-useip", fmt.Sprintf("--debug=%v", globalFlags.Debug)); err != nil {
105105
log.Errorf("init quickon failed, reason: %v", err)
106106
return
107107
}

cmd/upgrade/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func NewUpgradeOperator(f factory.Factory) *cobra.Command {
3232
}
3333

3434
func (up option) DoOperator() {
35-
args := []string{"manage", "plugins", "upgrade", "cne-operator"}
35+
args := []string{"quickon", "plugins", "upgrade", "cne-operator"}
3636
if up.log.GetLevel() == logrus.DebugLevel {
3737
args = append(args, "--debug")
3838
}

pkg/quickon/quickon.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (m *Meta) checkIngress() {
108108
if defaultClass == nil {
109109
m.log.Infof("not found default ingress class, will install nginx ingress")
110110
m.log.Debug("start install default ingress: nginx-ingress-controller")
111-
if err := qcexec.CommandRun(os.Args[0], "manage", "plugins", "enable", "ingress"); err != nil {
111+
if err := qcexec.CommandRun(os.Args[0], "quickon", "plugins", "enable", "ingress"); err != nil {
112112
m.log.Errorf("install ingress failed, reason: %v", err)
113113
} else {
114114
m.log.Done("install ingress: cne-ingress success")
@@ -126,7 +126,7 @@ func (m *Meta) checkStorage() {
126126
if defaultClass == nil {
127127
m.log.Infof("not found default storage class, will install default storage")
128128
m.log.Debug("start install default storage: local-storage")
129-
if err := qcexec.CommandRun(os.Args[0], "manage", "plugins", "enable", "storage"); err != nil {
129+
if err := qcexec.CommandRun(os.Args[0], "quickon", "plugins", "enable", "storage"); err != nil {
130130
m.log.Errorf("install storage failed, reason: %v", err)
131131
} else {
132132
m.log.Done("install storage: local-storage success")

0 commit comments

Comments
 (0)