mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-16 04:34:32 +00:00
25 lines
618 B
Go
25 lines
618 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 eventsCmd = &cobra.Command{
|
|
Use: "events [OPTIONS] [SERVICE...]",
|
|
Short: "Receive real time events from containers.",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(eventsCmd).Standalone()
|
|
|
|
eventsCmd.Flags().Bool("json", false, "Output events as a stream of json objects")
|
|
rootCmd.AddCommand(eventsCmd)
|
|
|
|
carapace.Gen(eventsCmd).PositionalAnyCompletion(
|
|
action.ActionServices(eventsCmd).FilterArgs(),
|
|
)
|
|
}
|