Documentation
¶
Overview ¶
Package installupdate manages the npm-bootstrap updater lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterCommand ¶
AfterCommand shows pending status and schedules a due bootstrap update. Errors are intentionally reported to stderr and never change command status.
func DueAt ¶
DueAt returns the next automatic-check time used by tests and diagnostics.
func RunCheck ¶
RunCheck executes an explicit foreground update check.
func StartDetached ¶
StartDetached runs the copied bootstrap helper after this process exits.
Types ¶
type Manifest ¶
type Manifest struct {
Distribution string `json:"distribution"`
Version string `json:"version"`
TargetDir string `json:"targetDir"`
Node string `json:"node"`
NPM string `json:"npm"`
Helper string `json:"helper"`
// contains filtered or unexported fields
}
Manifest describes an npm-bootstrap installation.
func LoadBootstrapManifest ¶
LoadBootstrapManifest returns the manifest adjacent to the running binary.
Source Files
¶
- lifecycle.go
Click to show internal directories.
Click to hide internal directories.