merge base to master (#794)

* refactor(ci): add auto invite (#762)

* refactor(ci): add auto invite (#763)

* refactor(ci): add auto invite

* docs: readme align

* refactor(dev): fix docs site (#773)

* refactor(master): cloud,app feature close (#774)

* refactor(master): cloud,app feature close

* 缺陷: 最新版本sealos init 安装k8s 失败 (#778)

Fixes #691

* refactor(master): release rc.8 (#782)

* refactor(master): changelog (#784)

* update changelog to master (#785)

* refactor(master): changelog

* refactor(dev): delete bug printf (#790)

* refactor(dev): fix merge

* refactor(dev): add feature check

Co-authored-by: jiangyanfei <749985146@qq.com>
Co-authored-by: louis <38313565+oldthreefeng@users.noreply.github.com>
Co-authored-by: ldseraph <ld.seraph@163.com>
This commit is contained in:
cuisongliu
2021-12-29 20:03:04 +08:00
committed by GitHub
co-authored by jiangyanfei louis ldseraph
parent 8314f1c5ba
commit 40f2f5dec0
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ jobs:
qq group : 98488045
sealos dingtalk group : 35371178
home Website: https://www.sealyun.com
developer please add my dingtalk or wechat : cuisongliu
developer please add my dingtalk or wechat : cuisongliu
+3 -1
View File
@@ -51,7 +51,9 @@ var deleteCmd = &cobra.Command{
_ = appmanager.DeleteApp(cfg, cfgFile)
},
PreRun: func(cmd *cobra.Command, args []string) {
logger.Fatal("the delete app feature not support")
if !feature {
logger.Fatal("the delete app feature not support")
}
if install.ExitDeleteCase(AppURL) {
_ = cmd.Help()
os.Exit(install.ErrorExitOSCase)
+3 -1
View File
@@ -54,7 +54,9 @@ var installCmd = &cobra.Command{
_ = appmanager.InstallApp(cfg, cfgFile)
},
PreRun: func(cmd *cobra.Command, args []string) {
logger.Fatal("the install app feature not support")
if !feature {
logger.Fatal("the install app feature not support")
}
if install.ExitInstallCase(AppURL) {
_ = cmd.Help()
os.Exit(install.ErrorExitOSCase)
+2
View File
@@ -29,6 +29,7 @@ import (
var (
cfgFile string
Info bool
feature bool
)
// rootCmd represents the base command when called without any subcommands
@@ -52,6 +53,7 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.sealos/config.yaml)")
rootCmd.PersistentFlags().BoolVar(&feature, "feature", false, "need use new feature. ex app feature")
rootCmd.PersistentFlags().BoolVar(&Info, "info", false, "logger ture for Info, false for Debug")
}