Documentation ¶
Index ¶
- func MergeTpl(text string, data *DataPackage) (string, error)
- type DataPackage
- type NpmExec
- func (instance *NpmExec) ExecuteCommand(arguments ...string) (out string, err error)
- func (instance *NpmExec) GetPath(path string) (response string)
- func (instance *NpmExec) GetTempPath(subPath string) (response string)
- func (instance *NpmExec) GetWorkPath(subPath string) (response string)
- func (instance *NpmExec) Help() (string, error)
- func (instance *NpmExec) HelpOn(command string) (string, error)
- func (instance *NpmExec) Init(data *DataPackage) (string, error)
- func (instance *NpmExec) InitFromTemplate(tpl string, data *DataPackage) (string, error)
- func (instance *NpmExec) Install() (string, error)
- func (instance *NpmExec) IsInstalled() bool
- func (instance *NpmExec) LogDisableRotation()
- func (instance *NpmExec) LogFlush()
- func (instance *NpmExec) Root() string
- func (instance *NpmExec) Run(command string) (string, error)
- func (instance *NpmExec) RunAsync(command string) (*executor.ConsoleProgramSession, error)
- func (instance *NpmExec) SetLogger(logger gg_log.ILogger) *NpmExec
- func (instance *NpmExec) SetRoot(dir string) *NpmExec
- func (instance *NpmExec) SetSubTemp(enabled bool) *NpmExec
- func (instance *NpmExec) SetTemp(dir string) *NpmExec
- func (instance *NpmExec) Temp() string
- func (instance *NpmExec) Version() (string, error)
- func (instance *NpmExec) Work() string
- type NpmHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataPackage ¶
type NpmExec ¶
type NpmExec struct {
// contains filtered or unexported fields
}
func (*NpmExec) ExecuteCommand ¶
func (*NpmExec) GetTempPath ¶
func (*NpmExec) GetWorkPath ¶
func (*NpmExec) InitFromTemplate ¶
func (instance *NpmExec) InitFromTemplate(tpl string, data *DataPackage) (string, error)
func (*NpmExec) IsInstalled ¶
func (*NpmExec) LogDisableRotation ¶
func (instance *NpmExec) LogDisableRotation()
func (*NpmExec) RunAsync ¶
func (instance *NpmExec) RunAsync(command string) (*executor.ConsoleProgramSession, error)
func (*NpmExec) SetSubTemp ¶
Click to show internal directories.
Click to hide internal directories.