mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-16 04:34:32 +00:00
24 lines
495 B
Go
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(),
|
|
)
|
|
}
|