Documentation
¶
Overview ¶
Package cmd implements the CLI commands for go-berkshelf.
Index ¶
- func CheckLockFileStatus(manager *lockfile.Manager, force bool) (shouldProceed bool, err error)
- func CreateRequirementsFromCookbooks(cookbooks []*berksfile.CookbookDef) []*resolver.Requirement
- func CreateSourceManager(bf *berksfile.Berksfile) (*source.Manager, error)
- func Execute() error
- func LoadBerksfile() (*berksfile.Berksfile, error)
- func LoadLockFile() (*lockfile.LockFile, *lockfile.Manager, error)
- func ResolveDependencies(ctx context.Context, requirements []*resolver.Requirement, ...) (*resolver.Resolution, error)
- func SetupSourcesFromBerksfile(berks *berksfile.Berksfile) (*source.Manager, error)
- type CommonFlags
- type CookbookListItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLockFileStatus ¶
CheckLockFileStatus checks if the lock file exists and whether it's outdated
func CreateRequirementsFromCookbooks ¶
func CreateRequirementsFromCookbooks(cookbooks []*berksfile.CookbookDef) []*resolver.Requirement
CreateRequirementsFromCookbooks creates resolver requirements from cookbook definitions
func CreateSourceManager ¶
CreateSourceManager creates a source manager from a parsed Berksfile
func Execute ¶
func Execute() error
Execute adds all child commands to the root command and sets flags appropriately.
func LoadBerksfile ¶
LoadBerksfile loads and parses the Berksfile from the current directory
func LoadLockFile ¶
LoadLockFile loads the lock file from the current directory
func ResolveDependencies ¶
func ResolveDependencies(ctx context.Context, requirements []*resolver.Requirement, sources []source.CookbookSource) (*resolver.Resolution, error)
ResolveDependencies resolves cookbook dependencies and handles errors
Types ¶
type CommonFlags ¶
CommonFlags holds flags that are used across multiple commands
Click to show internal directories.
Click to hide internal directories.