2024-05-22 20:40:06 +00:00
|
|
|
package server
|
|
|
|
|
2024-07-06 18:28:44 +00:00
|
|
|
import "github.com/ditatompel/xmr-remote-nodes/cmd"
|
2024-05-22 20:40:06 +00:00
|
|
|
|
|
|
|
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")
|
2024-09-16 16:29:15 +00:00
|
|
|
cmd.Root.AddCommand(nodeCmd)
|
|
|
|
nodeCmd.AddCommand(deleteNodeCmd)
|
2024-05-22 20:40:06 +00:00
|
|
|
}
|