2023-08-05 13:25:28 +02:00

24 lines
495 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 topCmd = &cobra.Command{
Use: "top [SERVICES...]",
Short: "Display the running processes",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(topCmd).Standalone()
rootCmd.AddCommand(topCmd)
carapace.Gen(topCmd).PositionalAnyCompletion(
action.ActionServices(topCmd).FilterArgs(),
)
}