update info of infra/README.md
[ealt-edge.git] / ocd / cli / ealt / cmd / init / all.go
index 1654a16..72b2b7f 100644 (file)
@@ -16,7 +16,6 @@ limitations under the License.
 package init
 
 import (
-
        setup "ealt/cmd/setup"
 
        "github.com/spf13/cobra"
@@ -29,12 +28,16 @@ func NewAllCommand() *cobra.Command {
                Short: "Install Complete EALT Deployment Environment",
                Long:  `Install Complete EALT Deployment Environment`,
                RunE: func(cmd *cobra.Command, args []string) error {
-                       err := setup.EaltInstall("all")
+                       var err error
+                       err = setup.EaltInstall("all")
                        if err != nil {
                                return err
                        }
                        return nil
                },
        }
+       cmd.Flags().StringP("mode", "m", "dev", "Deployment Mode")
+       //cmd.MarkFlagRequired("mode")
+
        return cmd
 }