welcome: call api to create account
diff --git a/core/installer/cmd/welcome.go b/core/installer/cmd/welcome.go
index 68f3c36..41d27f7 100644
--- a/core/installer/cmd/welcome.go
+++ b/core/installer/cmd/welcome.go
@@ -12,9 +12,10 @@
)
var welcomeFlags struct {
- repo string
- sshKey string
- port int
+ repo string
+ sshKey string
+ port int
+ createAccountAddr string
}
func welcomeCmd() *cobra.Command {
@@ -40,6 +41,12 @@
8080,
"",
)
+ cmd.Flags().StringVar(
+ &welcomeFlags.createAccountAddr,
+ "create-account-addr",
+ "",
+ "",
+ )
return cmd
}
@@ -68,6 +75,7 @@
welcomeFlags.port,
installer.NewRepoIO(repo, signer),
nsCreator,
+ welcomeFlags.createAccountAddr,
)
s.Start()
return nil