mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
22 lines
519 B
Go
22 lines
519 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var container_topCmd = &cobra.Command{
|
|
Use: "top CONTAINER [ps OPTIONS]",
|
|
Short: "Display the running processes of a container",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(container_topCmd).Standalone()
|
|
|
|
containerCmd.AddCommand(container_topCmd)
|
|
|
|
carapace.Gen(container_topCmd).PositionalAnyCompletion(docker.ActionContainers())
|
|
}
|