mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
253230dc5a
The administration of the server is done using cli tools. So I don't think that admin account and module is required. At least for now. Note that this also remove `tbl_admin` creation in database migrate. Since no release were made until this commit, the database migration still in version 1. Manual removal database table for `tbl_admin` is required on the existing running server.
16 lines
559 B
Go
16 lines
559 B
Go
package server
|
|
|
|
import "xmr-remote-nodes/cmd"
|
|
|
|
func init() {
|
|
cmd.Root.AddCommand(serveCmd)
|
|
cmd.Root.AddCommand(importCmd)
|
|
cmd.Root.AddCommand(cronCmd)
|
|
cmd.Root.AddCommand(probersCmd)
|
|
probersCmd.AddCommand(listProbersCmd)
|
|
probersCmd.AddCommand(addProbersCmd)
|
|
probersCmd.AddCommand(editProbersCmd)
|
|
probersCmd.AddCommand(deleteProbersCmd)
|
|
listProbersCmd.Flags().StringP("sort-by", "s", "last_submit_ts", "Sort by column name, can be id or last_submit_ts")
|
|
listProbersCmd.Flags().StringP("sort-dir", "d", "desc", "Sort direction, can be asc or desc")
|
|
}
|