Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "unspecified"
Functions ¶
func InstallCommand ¶
func NewInstall ¶
NewInstall performs a new installation of gödel in the specified directory using the specified file as the source. Calls "Install" to install the package provided as a parameter. Once the package is installed, the wrapper and settings files are copied from the newly downloaded distribution to the specified path. If there was a previous installation of gödel in the path, it is overwritten by the new file. However, changes in the "var" directory are purely additive -- files that have been added in this directory in the new distribution will be added, but existing files will not be modified or removed.
func Update ¶
Update updates gödel. Calls "Install" to download and install the package specified in the "{{properties.Url}}" property of the properties file for the provided gödel wrapper script. Once the package is installed, the provided wrapper file and its directory are overwritten with the files provided by the package that was downloaded. However, changes in the "var" directory are purely additive -- files that have been added in this directory in the new distribution will be added, but existing files will not be modified or removed.
func UpdateCommand ¶
func VersionCommand ¶
Types ¶
type PkgWithChecksum ¶
func GetDistPkgInfo ¶
func GetDistPkgInfo(configDir string) (PkgWithChecksum, error)
GetDistPkgInfo returns the distribution URL and checksum (if it exists) from the configuration file in the provided directory. Returns an error if the URL cannot be read.
func (PkgWithChecksum) ToPkgSrc ¶
func (p PkgWithChecksum) ToPkgSrc() PkgSrc