Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TellCommandNotToSpawnShell ¶
TellCommandNotToSpawnShell will now spawn a shell
Types ¶
type Tools ¶
type Tools struct {
// contains filtered or unexported fields
}
Tools will represent the installed tools
func New ¶
New will return a Tool object, allowing the caller to execute operations on it. The New functions accept the directory to use to host the tools, an index (used to download the tools), and a logger to log the operations
func (*Tools) Download ¶
Download will parse the index at the indexURL for the tool to download. It will extract it in a folder in .arduino-create, and it will update the Installed map.
pack contains the packager of the tool name contains the name of the tool. version contains the version of the tool. behaviour contains the strategy to use when there is already a tool installed
If version is "latest" it will always download the latest version (regardless of the value of behaviour)
If version is not "latest" and behaviour is "replace", it will download the version again. If instead behaviour is "keep" it will not download the version if it already exists.