You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26-6
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,18 @@ export PATH=<target directory of whirl>:${PATH}
42
42
43
43
### Use the release
44
44
45
-
Download the release artifact
45
+
Download the [latest Whirl release artifact](https://github.com/godatadriven/whirl/releases/download/latest/whirl-release.tar.gz)
46
+
47
+
Extract the file (for example into `/usr/local/opt`)
48
+
49
+
```bash
50
+
tar -xvzf whirl-release.tar.gz -C /usr/local/opt
51
+
```
52
+
53
+
Make sure the whirl script is available on your path
54
+
```bash
55
+
export PATH=/usr/local/opt/whirl:$PATH
56
+
```
46
57
47
58
## Usage
48
59
@@ -57,18 +68,22 @@ $ whirl --help
57
68
58
69
#### Starting whirl
59
70
60
-
The default action is to start the DAG in your current directory. It expects an environment to be configured. You can pass this as a command line argument or you can configure it in a `.whirl.env` file. (See [Configuring environment variables](#configuring-environment-variables).) The environment refers to a directory with the same name in the `envs` directory located near the _whirl_ script.
71
+
The default action is to start the DAG in your current directory.
72
+
73
+
With the `[-x example]` commandline argument you can run whirl from anywhere and tell whirl which example dag to run. The example refers to a directory with the same name in the `examples` directory located near the _whirl_ script.
74
+
75
+
Whirl expects an environment to be configured. You can pass this as a command line argument `[-e environment]` or you can configure it as environment variable `WHIRL_ENVIRONMENT` in a `.whirl.env` file. (See [Configuring environment variables](#configuring-environment-variables).) The environment refers to a directory with the same name in the `envs` directory located near the _whirl_ script.
Specifying the `start` command line argument is a more explicit way to start _whirl_.
67
82
68
83
#### Stopping whirl
69
84
70
85
```bash
71
-
$ whirl stop [-d <directory>] [-e <environment>]
86
+
$ whirl [-x example] [-e <environment>] stop
72
87
```
73
88
Stops the configured environment.
74
89
@@ -140,8 +155,6 @@ Each example contains it's own README file to explain the specifics of that exam
140
155
141
156
#### Generic running of examples
142
157
143
-
From within the example directory the `whirl` command can be executed.
144
-
145
158
To run a example:
146
159
147
160
```bash
@@ -150,6 +163,13 @@ $ cd ./examples/<example-dag-directory>
150
163
$ whirl -e <environment to use>
151
164
```
152
165
166
+
or
167
+
```bash
168
+
$
169
+
# Note: here we pass the whirl environment as a command-line argument. It can also be configured with the WHIRL_ENVIRONMENT variable
170
+
$ whirl -x <example to run> -e <environment to use>
171
+
```
172
+
153
173
Open your browser to [http://localhost:5000](http://localhost:5000) to access the Airflow UI. Manually enable the DAG and watch the pipeline run to successful completion.
0 commit comments