installer: clean up codebase
* introduce helper soft package to work with SoftServe
* move commands to cmd/
diff --git a/core/installer/cmd/main.go b/core/installer/cmd/main.go
new file mode 100644
index 0000000..9b7a6ba
--- /dev/null
+++ b/core/installer/cmd/main.go
@@ -0,0 +1,34 @@
+package main
+
+import (
+ "log"
+
+ "github.com/spf13/cobra"
+)
+
+var rootCmd *cobra.Command
+
+var rootFlags struct {
+ kubeConfig string
+}
+
+func init() {
+ rootCmd = &cobra.Command{
+ Use: "pcloud",
+ }
+ rootCmd.PersistentFlags().StringVar(
+ &rootFlags.kubeConfig,
+ "kubeconfig",
+ "",
+ "",
+ )
+ rootCmd.AddCommand(bootstrapCmd())
+ rootCmd.AddCommand(createEnvCmd())
+ rootCmd.AddCommand(installCmd())
+}
+
+func main() {
+ if err := rootCmd.Execute(); err != nil {
+ log.Fatal(err)
+ }
+}