CLI updated for init and clean
[ealt-edge.git] / ocd / cli / ealt / cmd / init / all.go
index 061c629..72b2b7f 100644 (file)
@@ -17,7 +17,6 @@ package init
 
 import (
        setup "ealt/cmd/setup"
-       "strings"
 
        "github.com/spf13/cobra"
 )
@@ -29,13 +28,8 @@ func NewAllCommand() *cobra.Command {
                Short: "Install Complete EALT Deployment Environment",
                Long:  `Install Complete EALT Deployment Environment`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       setupModeFlag := strings.ToLower(cmd.Flag("mode").Value.String())
                        var err error
-                       if setupModeFlag == "dev" {
-                               err = setup.EaltInstall("all")
-                       } else if setupModeFlag == "prod" {
-                               err = setup.EaltInstall("secure")
-                       }
+                       err = setup.EaltInstall("all")
                        if err != nil {
                                return err
                        }