ps

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ps provides options for the compose ps command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAll

func WithAll() compose.SetComposePsOption

WithAll shows all stopped containers (including those created by run)

func WithFilter

func WithFilter(keyValue string) compose.SetComposePsOption

WithFilter adds a filter (e.g. "status=running")

func WithFormat

func WithFormat(format string) compose.SetComposePsOption

WithFormat sets the output format (e.g. "table", "json")

func WithNoTrunc

func WithNoTrunc() compose.SetComposePsOption

WithNoTrunc disables truncation of output

func WithOrphans

func WithOrphans(include bool) compose.SetComposePsOption

WithOrphans sets whether to include orphaned services (false = --no-orphans)

func WithProfiles

func WithProfiles(profiles ...string) compose.SetComposePsOption

WithProfiles sets the profiles to activate

func WithQuiet

func WithQuiet() compose.SetComposePsOption

WithQuiet only display container IDs

func WithServiceNames

func WithServiceNames(names ...string) compose.SetComposePsOption

WithServiceNames sets the optional service names (positional args)

func WithServices

func WithServices() compose.SetComposePsOption

WithServices display services

func WithStatus

func WithStatus(status string) compose.SetComposePsOption

WithStatus filters by status (e.g. "running", "exited")

func WithWriter

func WithWriter(writer io.Writer) compose.SetComposePsOption

WithWriter sets the writer for stdout/stderr

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL