Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddCommand(packageManager Tool, commandScope CommandScope, pkg ...string) (*command.Model, error)
AddCommand returns command model to install js dependencies
func RemoveCommand ¶
func RemoveCommand(packageManager Tool, commandScope CommandScope, pkg ...string) (*command.Model, error)
RemoveCommand returns command model to remove js dependencies
Types ¶
type CommandScope ¶
type CommandScope string
CommandScope describes package manager command scope (global, or not)
const ( Local CommandScope = "local" Global CommandScope = "global" )
PackageScope types
type InstallCommand ¶
InstallCommand contains the command to be executed and wether the resulting error can be ignored. (yarn exits with error if removing a not yet added package)
func InstallGlobalDependencyCommand ¶
func InstallGlobalDependencyCommand(packageManager Tool, dependency string, version string) ([]InstallCommand, error)
InstallGlobalDependencyCommand returns command model to install a global js dependency
Click to show internal directories.
Click to hide internal directories.