Documentation
¶
Overview ¶
Package shell ...
Package shell ...
Package shell ...
Index ¶
- type LocalShell
- type NodePackageManager
- func (n *NodePackageManager) GetShell() Shell
- func (n *NodePackageManager) RunAddPackages(pmName string, operation string, mode string, packages []string, ...) error
- func (n *NodePackageManager) RunInstall(pmName string, operation string, silentMode bool) (err error)
- func (n *NodePackageManager) RunSvelteKitCommand(pmName string, operation string, silentMode bool) (err error)
- func (n *NodePackageManager) RunUpdate(pmName string, operation string, silentMode bool) (err error)
- type Shell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalShell ¶
type LocalShell struct { }
LocalShell is a Shell implementation.
func (*LocalShell) BackgroundExecute ¶
func (s *LocalShell) BackgroundExecute(ctx context.Context, pmName string, pmCmd string, packageList string) ([]byte, error)
BackgroundExecute runs an action on the npm client in background.
type NodePackageManager ¶
type NodePackageManager struct {
// contains filtered or unexported fields
}
NodePackageManager is a Shell implementation used to interact with a npnClient.
func NewNodePackageManager ¶
func NewNodePackageManager() *NodePackageManager
NewNodePackageManager returns a pointer to a NodePackageManager struct.
func (*NodePackageManager) GetShell ¶
func (n *NodePackageManager) GetShell() Shell
GetShell returns a Shell.
func (*NodePackageManager) RunAddPackages ¶
func (n *NodePackageManager) RunAddPackages(pmName string, operation string, mode string, packages []string, silentMode bool) error
RunAddPackages execute the relative npmClient install|add package command.
func (*NodePackageManager) RunInstall ¶
func (n *NodePackageManager) RunInstall(pmName string, operation string, silentMode bool) (err error)
RunInstall execute the relative npmClient install command.
func (*NodePackageManager) RunSvelteKitCommand ¶
func (n *NodePackageManager) RunSvelteKitCommand(pmName string, operation string, silentMode bool) (err error)
RunSvelteKitCommand execute the relative npmClient sveltekit script command as defined on the package.json file.
Click to show internal directories.
Click to hide internal directories.