Documentation ¶
Index ¶
- func Create(ctx context.Context, name string) error
- func CreateDir(dir string) error
- func RunCmd(ctx context.Context, dir, command string, args ...string) error
- func RunCmdSilent(ctx context.Context, dir, command string, args ...string) error
- func ShowSpinner(text string) func()
- func UpgradeCommand(ctx context.Context, version, baseDir string) error
- func UpgradeCommandGlobal(_ context.Context, version string) (*build.Build, error)
- func UpgradePackages(ctx context.Context, version, playerPath, callbacksPath string) error
- type PackageJSON
- type PackageLock
- type PackageLockDep
- type PackageLockPackage
- type PackageVersion
- type SimpleComponent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCmdSilent ¶
func ShowSpinner ¶
func ShowSpinner(text string) func()
func UpgradeCommandGlobal ¶
Types ¶
type PackageJSON ¶
type PackageLock ¶
type PackageLock struct { Name string `json:"name"` Packages map[string]PackageLockPackage `json:"packages"` Dependencies map[string]PackageLockDep `json:"dependencies"` }
type PackageLockDep ¶
type PackageLockPackage ¶
type PackageVersion ¶
type PackageVersion struct { Configured string `json:"configured,omitempty" yaml:"configured,omitempty"` Requested string `json:"requested,omitempty" yaml:"requested,omitempty"` Resolved string `json:"resolved,omitempty" yaml:"resolved,omitempty"` }
func GetVersion ¶
func GetVersion(dir, pkg string) *PackageVersion
func (*PackageVersion) String ¶
func (v *PackageVersion) String() string
type SimpleComponent ¶
type SimpleComponent struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Empirica *PackageVersion `json:"empirica,omitempty" yaml:"empirica,omitempty"` }
func GetSimpleComponent ¶
func GetSimpleComponent(full bool) []*SimpleComponent
func (*SimpleComponent) String ¶
func (c *SimpleComponent) String() string
Click to show internal directories.
Click to hide internal directories.