diff --git a/README.md b/README.md
index cca171f..aa43636 100644
--- a/README.md
+++ b/README.md
@@ -82,7 +82,6 @@ argv):
./program "$1"
```
-
Documentation
-------------
@@ -93,16 +92,32 @@ show how to use AwGo. Use one as a template to get your own workflow up and
running quickly.
-Running/testing
----------------
+Requirements
+------------
+
+The library (and therefore the unit tests) rely on being run in a minimally
+Alfred-like environment, as they pull configuration options from the environment
+variables set by Alfred.
+
+This means that if you want to run AwGo-based code outside Alfred, e.g. in your
+shell, you must set at least the following environment variables to meaningful
+values, or the library will panic:
+
+- `alfred_workflow_bundleid`
+- `alfred_workflow_cache`
+- `alfred_workflow_data`
+
+And if you're using the update API, also:
+
+- `alfred_workflow_version`
+
-The library, and therefore the unit tests, rely on being run in an Alfred-like
-environment, as they pull configuration options from environment variables
-(which are set by Alfred).
+Development
+-----------
-As such, you must `source` the `env.sh` script in the project root or run unit
-tests via the `run-tests.sh` script (which also sets up an appropriate
-environment before calling `go test`).
+To create a sufficiently Alfred-like environment, you can `source` the `env.sh`
+script in the project root or run unit tests via the `run-tests.sh` script
+(which also sets up an appropriate environment before calling `go test`).
Licensing & thanks
diff --git a/doc.go b/doc.go
index 69af4c4..ecbb08f 100644
--- a/doc.go
+++ b/doc.go
@@ -45,7 +45,7 @@ of AwGo and useful workflow idioms.
Features
-As of AwGo 0.14, all applicable features of Alfred 3.6 are supported.
+As of AwGo 0.15, all applicable features of Alfred 3.7 are supported.
The main features are:
diff --git a/env.sh b/env.sh
index 224195e..bdd0a45 100644
--- a/env.sh
+++ b/env.sh
@@ -7,7 +7,7 @@ export alfred_workflow_cache="$HOME/Library/Caches/com.runningwithcrayons.Alfred
export alfred_workflow_data="$HOME/Library/Application Support/Alfred 3/Workflow Data/net.deanishe.awgo"
# Expected by ExampleNew
-export alfred_workflow_version="0.14"
+export alfred_workflow_version="0.15"
export alfred_workflow_name="AwGo"
# export alfred_debug="1"
@@ -19,4 +19,4 @@ export alfred_workflow_name="AwGo"
# export alfred_theme_subtext="0"
# export alfred_version="3.6"
# export alfred_version_build="901"
-# export alfred_workflow_uid="user.workflow.4B0E9731-E139-4179-BC50-D7FFF82B269A"
\ No newline at end of file
+# export alfred_workflow_uid="user.workflow.4B0E9731-E139-4179-BC50-D7FFF82B269A"
diff --git a/run-tests.sh b/run-tests.sh
index 0a7b712..16bc0c3 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -109,15 +109,15 @@ export alfred_workflow_cache="${testdir}/cache"
export alfred_workflow_data="${testdir}/data"
# Expected by ExampleNew
-export alfred_workflow_version="0.14"
+export alfred_workflow_version="0.15"
export alfred_workflow_name="AwGo"
cd "$root"
[[ $#@ -eq 0 ]] && {
- pkgs=./...
+ pkgs=(go list ./...)
} || {
- pkgs="$@"
+ pkgs=($@)
}
go test $gopts $pkgs
diff --git a/testutils_test.go b/testutils_test.go
index 062b3de..0f9ab2d 100644
--- a/testutils_test.go
+++ b/testutils_test.go
@@ -12,7 +12,7 @@ import (
)
var (
- tVersion = "0.14"
+ tVersion = "0.15"
tName = "AwGo"
tBundleID = "net.deanishe.awgo"
tUID = "user.workflow.4B0E9731-E139-4179-BC50-D7FFF82B269A"
@@ -69,7 +69,7 @@ var (
webaddress
https://github.com/deanishe/awgo
version
- 0.14
+ 0.15
variables
exported_var
diff --git a/workflow.go b/workflow.go
index 99afd72..8325c46 100644
--- a/workflow.go
+++ b/workflow.go
@@ -18,7 +18,7 @@ import (
)
// AwGoVersion is the semantic version number of this library.
-const AwGoVersion = "0.14.0"
+const AwGoVersion = "0.15.0"
// Default Workflow settings. Can be changed with the corresponding Options.
//
diff --git a/workflow_test.go b/workflow_test.go
index 999d8bf..fa3f260 100644
--- a/workflow_test.go
+++ b/workflow_test.go
@@ -154,7 +154,7 @@ func ExampleNew() {
// Output:
// AwGo
// net.deanishe.awgo
- // 0.14
+ // 0.15
}
// Pass one or more Options to New() to configure the created Workflow.