CLI updated for init and clean
[ealt-edge.git] / ocd / cli / ealt / cmd / init / edge.go
index 3b16f93..3349c70 100644 (file)
@@ -17,7 +17,6 @@ package init
 
 import (
        "fmt"
-       "strings"
 
        setup "ealt/cmd/setup"
 
@@ -31,13 +30,8 @@ func NewEdgeCommand() *cobra.Command {
                Long:  `Command to Install Edge Node only For Example : ealt init edge`,
                RunE: func(cmd *cobra.Command, args []string) error {
                        fmt.Println("Installation of Edge components")
-                       setupModeFlag := strings.ToLower(cmd.Flag("mode").Value.String())
                        var err error
-                       if setupModeFlag == "dev" {
-                               err = setup.EaltInstall("edge")
-                       } else if setupModeFlag == "prod" {
-                               err = setup.EaltInstall("ssledge")
-                       }
+                       err = setup.EaltInstall("edge")
                        if err != nil {
                                return err
                        }