Documentation
¶
Overview ¶
Package cmdfleet owns fleet command arguments and presentation.
Index ¶
- func New(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewDefaultBranch(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewMergePolicy(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewPRs(runtime shared.Runtime, deps Dependencies) *cobra.Command
- func NewStats(runtime shared.Runtime, deps Dependencies) *cobra.Command
- type Dependencies
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultBranch ¶
func NewDefaultBranch(runtime shared.Runtime, deps Dependencies) *cobra.Command
func NewMergePolicy ¶
func NewMergePolicy(runtime shared.Runtime, deps Dependencies) *cobra.Command
Types ¶
type Dependencies ¶
type Dependencies struct {
Overview func(context.Context, fleetinspect.Request) (fleetinspect.OverviewReport, error)
Stats func(context.Context, fleetinspect.Request) (fleetinspect.StatsReport, error)
Inventory func(context.Context, prinventory.Options) prinventory.Report
InventoryOwners func([]string) ([]prinventory.Owner, []prinventory.Diagnostic)
MergePolicy func(context.Context, mergepolicy.Request, io.Writer) (mergepolicy.Report, error)
DefaultBranch func(context.Context, defaultbranch.Request, io.Writer) (defaultbranch.Report, error)
Status statusview.Dependencies
Budget func() int
MkdirAll func(string, os.FileMode) error
WriteFile func(string, []byte, os.FileMode) error
}
Click to show internal directories.
Click to hide internal directories.