Install and manage Spoons and Spoon repositories
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/SpoonInstall.spoon.zip
| Signature | SpoonInstall.logger |
|---|---|
| Type | Variable |
| Description | Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon. |
| Source | Source/SpoonInstall.spoon/init.lua line 17 |
| Signature | SpoonInstall.repos |
|---|---|
| Type | Variable |
| Description | Table containing the list of available Spoon repositories. |
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 22 |
| Signature | SpoonInstall.use_syncinstall |
|---|---|
| Type | Variable |
| Description | If |
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 49 |
| Signature | SpoonInstall:andUse(name, arg) |
|---|---|
| Type | Method |
| Description | Declaratively install, load and configure a Spoon |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 387 |
| Signature | SpoonInstall:asyncInstallSpoonFromRepo(name, repo, callback) |
|---|---|
| Type | Method |
| Description | Asynchronously install a Spoon from a registered repository |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 348 |
| Signature | SpoonInstall:asyncInstallSpoonFromZipURL(url, callback) |
|---|---|
| Type | Method |
| Description | Asynchronously download a Spoon zip file and install it. |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 285 |
| Signature | SpoonInstall:asyncUpdateAllRepos() |
|---|---|
| Type | Method |
| Description | Asynchronously fetch the information about the contents of all Spoon repositories registered in |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 159 |
| Signature | SpoonInstall:asyncUpdateRepo(repo, callback) |
|---|---|
| Type | Method |
| Description | Asynchronously fetch the information about the contents of a Spoon repository |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 111 |
| Signature | SpoonInstall:installSpoonFromRepo(name, repo) |
|---|---|
| Type | Method |
| Description | Synchronously install a Spoon from a registered repository |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 369 |
| Signature | SpoonInstall:installSpoonFromZipURL(url) |
|---|---|
| Type | Method |
| Description | Synchronously download a Spoon zip file and install it. |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 309 |
| Signature | SpoonInstall:repolist() |
|---|---|
| Type | Method |
| Description | Return a sorted list of registered Spoon repositories |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 196 |
| Signature | SpoonInstall:search(pat) |
|---|---|
| Type | Method |
| Description | Search repositories for a pattern |
| Parameters |
|
| Returns |
|
| Source | Source/SpoonInstall.spoon/init.lua line 213 |
| Signature | SpoonInstall:updateAllRepos() |
|---|---|
| Type | Method |
| Description | Synchronously fetch the information about the contents of all Spoon repositories registered in |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 177 |
| Signature | SpoonInstall:updateRepo(repo) |
|---|---|
| Type | Method |
| Description | Synchronously fetch the information about the contents of a Spoon repository |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/SpoonInstall.spoon/init.lua line 136 |