/*1Copyright © 2022 NAME HERE <EMAIL ADDRESS>2*/3package cmd45import (6"github.com/spf13/cobra"7)89// RestartCmd represents the restart command10var RestartCmd = &cobra.Command{11Use: "restart",12Short: "Restart alist server by daemon/pid file",13Run: func(cmd *cobra.Command, args []string) {14stop()15start()16},17}1819func init() {20RootCmd.AddCommand(RestartCmd)2122// Here you will define your flags and configuration settings.2324// Cobra supports Persistent Flags which will work for this command25// and all subcommands, e.g.:26// restartCmd.PersistentFlags().String("foo", "", "A help for foo")2728// Cobra supports local flags which will only run when this command29// is called directly, e.g.:30// restartCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")31}323334