forked from gitea/gitea

* General refactor of the cmd package * Address breakage in runCreateUser * Place "common" functions into cmd.go
* General refactor of the cmd package * Address breakage in runCreateUser * Place "common" functions into cmd.go