func ResetQueueRun(r *cmd.RootCMD, c *cmd.CMD) {
	flags := r.Flags.(*GlobalFlags)
	client := v1.NewClient(flags.Socket)
	defer client.Close()
	if err := client.ResetQueued(); err != nil {
		fmt.Fprintf(os.Stderr, "Error while cancelling queued jobs: %v\n", err)
		os.Exit(1)
	}
	fmt.Println("Successfully reset queued jobs")
}
ResetQueueRun executes the "reset-queue" sub-command
package cli
import (
	"fmt"
	"github.com/DataDrake/cli-ng/cmd"
	"github.com/getsolus/ferryd/api"
	"os"
)
var ResetQueue = &cmd.CMD{
	Name:  "reset-queue",
	Alias: "rq",
	Short: "Cancel all pending jobs",
	Args:  &ResetQueueArgs{},
	Run:   ResetQueueRun,
}
type ResetQueueArgs struct{}