Skip to content

Commit

Permalink
merge base to master (#794)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: louis <[email protected]>
Co-authored-by: ldseraph <[email protected]>
  • Loading branch information
4 people authored Dec 29, 2021
1 parent 8314f1c commit 40f2f5d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-invite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
var (
cfgFile string
Info bool
feature bool
)

// rootCmd represents the base command when called without any subcommands
Expand All @@ -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")
}

Expand Down

0 comments on commit 40f2f5d

Please sign in to comment.