xmr-remote-nodes/cmd/server/init.go
Christian Ditaputratama 4c7d53547b
feat!: Change the module name to "URL based"
This make me easier to test the module with external services.
2024-07-07 01:28:44 +07:00

15 lines
549 B
Go

package server
import "github.com/ditatompel/xmr-remote-nodes/cmd"
func init() {
cmd.Root.AddCommand(serveCmd)
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")
}