Documentation ¶
Index ¶
- Variables
- func Readme(ctx context.Context, pkg *devpkg.Package, projectDir string, markdown bool) (string, error)
- func Remove(projectDir string, pkgs []string) error
- func RemoveInvalidSymlinks(projectDir string) error
- func WithDevbox(provider devboxProject) managerOption
- func WithLockfile(lockfile *lock.File) managerOption
- type Includable
- type Manager
- func (m *Manager) ApplyOptions(opts ...managerOption)
- func (m *Manager) Create(pkg *devpkg.Package) error
- func (m *Manager) Env(pkgs []*devpkg.Package, includes []string, computedEnv map[string]string) (map[string]string, error)
- func (m *Manager) GetServices(pkgs []*devpkg.Package, includes []string) (services.Services, error)
- func (m *Manager) Include(included string) error
- func (m *Manager) InitHooks(pkgs []*devpkg.Package, includes []string) ([]string, error)
- func (m *Manager) ParseInclude(include string) (Includable, error)
- func (m *Manager) ProcessPluginPackages(userPackages []*devpkg.Package) ([]*devpkg.Package, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VirtenvPath = filepath.Join(devboxHiddenDirName, "virtenv") VirtenvBinPath = filepath.Join(VirtenvPath, "bin") WrapperPath = filepath.Join(VirtenvPath, ".wrappers") WrapperBinPath = filepath.Join(WrapperPath, "bin") )
Functions ¶
func RemoveInvalidSymlinks ¶
func WithDevbox ¶
func WithDevbox(provider devboxProject) managerOption
func WithLockfile ¶
Types ¶
type Includable ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(opts ...managerOption) *Manager
func (*Manager) ApplyOptions ¶
func (m *Manager) ApplyOptions(opts ...managerOption)
func (*Manager) Env ¶
func (m *Manager) Env( pkgs []*devpkg.Package, includes []string, computedEnv map[string]string, ) (map[string]string, error)
Env returns the environment variables for the given plugins. TODO: We should associate the env variables with the individual plugin binaries via wrappers instead of adding to the environment everywhere. TODO: this should have PluginManager as receiver so we can build once with pkgs, includes, etc
func (*Manager) GetServices ¶
func (*Manager) ParseInclude ¶
func (m *Manager) ParseInclude(include string) (Includable, error)
Click to show internal directories.
Click to hide internal directories.