Skip to content

Commit

Permalink
add create user command
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Nov 4, 2023
1 parent d02953a commit 50a85ec
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions cmd/creatuser/server.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package creatuser

package autocert

import (
"net/http"

"github.com/spf13/cobra"

"crypto/tls"
"fmt"

"golang.org/x/crypto/acme/autocert"
)

var (
configYml string
apiCheck bool
StartCmd = &cobra.Command{
Use: "creatuser",
Short: "create user",
Example: "easy-admin createuser -c config/settings.yml",
SilenceUsage: true,
PreRun: func(cmd *cobra.Command, args []string) {
setup()
},
RunE: func(cmd *cobra.Command, args []string) error {
return run()
},
}
)

func init() {

}

func setup() {

}

func run() error {
return nil
}

0 comments on commit 50a85ec

Please sign in to comment.