mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-16 04:34:32 +00:00
26 lines
691 B
Go
26 lines
691 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/completers/docker-compose_completer/cmd/action"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var restartCmd = &cobra.Command{
|
|
Use: "restart [OPTIONS] [SERVICE...]",
|
|
Short: "Restart service containers",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(restartCmd).Standalone()
|
|
|
|
restartCmd.Flags().Bool("no-deps", false, "Don't restart dependent services.")
|
|
restartCmd.Flags().IntP("timeout", "t", 10, "Specify a shutdown timeout in seconds")
|
|
rootCmd.AddCommand(restartCmd)
|
|
|
|
carapace.Gen(restartCmd).PositionalAnyCompletion(
|
|
action.ActionServices(restartCmd).FilterArgs(),
|
|
)
|
|
}
|