compose

package
v2.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 41 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Warning string

Warning is a global warning to be displayed to user on command failure

Functions

func Adapt

func Adapt(fn Command) func(cmd *cobra.Command, args []string) error

Adapt a Command func to cobra library

func RootCommand

func RootCommand(backend api.Service) *cobra.Command

RootCommand returns the compose command with its child commands

Types

type Command

type Command func(context.Context, []string) error

Command defines a compose CLI command as a func with args

type ProjectFunc

type ProjectFunc func(ctx context.Context, project *types.Project) error

ProjectFunc does stuff within a types.Project

type ProjectServicesFunc

type ProjectServicesFunc func(ctx context.Context, project *types.Project, services []string) error

ProjectServicesFunc does stuff within a types.Project and a selection of services

Jump to

Keyboard shortcuts

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