Documentation ¶
Index ¶
- Constants
- func Adapt(fn Command) func(cmd *cobra.Command, args []string) error
- func AdaptCmd(fn CobraCommand) func(cmd *cobra.Command, args []string) error
- func RootCommand(streams command.Cli, backend api.Service) *cobra.Command
- func RunningAsStandalone() bool
- type CobraCommand
- type Command
- type ProjectFunc
- type ProjectOptions
- func (o *ProjectOptions) ToProject(services []string, po ...cli.ProjectOptionsFn) (*types.Project, error)
- func (o *ProjectOptions) WithProject(fn ProjectFunc) func(cmd *cobra.Command, args []string) error
- func (o *ProjectOptions) WithServices(fn ProjectServicesFunc) func(cmd *cobra.Command, args []string) error
- type ProjectServicesFunc
Constants ¶
View Source
const PluginName = "compose"
PluginName is the name of the plugin
Variables ¶
This section is empty.
Functions ¶
func AdaptCmd ¶
func AdaptCmd(fn CobraCommand) func(cmd *cobra.Command, args []string) error
AdaptCmd adapt a CobraCommand func to cobra library
func RootCommand ¶
RootCommand returns the compose command with its child commands
func RunningAsStandalone ¶
func RunningAsStandalone() bool
RunningAsStandalone detects when running as a standalone program
Types ¶
type CobraCommand ¶
CobraCommand defines a cobra command function
type ProjectFunc ¶
ProjectFunc does stuff within a types.Project
type ProjectOptions ¶
type ProjectOptions struct { ProjectName string Profiles []string ConfigPaths []string WorkDir string ProjectDir string EnvFiles []string Compatibility bool }
func (*ProjectOptions) ToProject ¶
func (o *ProjectOptions) ToProject(services []string, po ...cli.ProjectOptionsFn) (*types.Project, error)
func (*ProjectOptions) WithProject ¶
func (o *ProjectOptions) WithProject(fn ProjectFunc) func(cmd *cobra.Command, args []string) error
WithProject creates a cobra run command from a ProjectFunc based on configured project options and selected services
func (*ProjectOptions) WithServices ¶
func (o *ProjectOptions) WithServices(fn ProjectServicesFunc) func(cmd *cobra.Command, args []string) error
WithServices creates a cobra run command from a ProjectFunc based on configured project options and selected services
Click to show internal directories.
Click to hide internal directories.