-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,014 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
### | ||
CLI | ||
### | ||
|
||
A CLI is provided to trigger workflows that are defined in a ``flowfile.py`` file. | ||
|
||
The primary CLI commands are ``list`` and ``run``. | ||
|
||
A `flowfile` is simply a Python file in which a set of workflows are defined or imported. | ||
The `flowfile` is loaded by the CLI and the workflows are made available for execution. | ||
|
||
|
||
Listing available workflows | ||
--------------------------- | ||
|
||
.. code-block:: bash | ||
$ flow list --help | ||
usage: flow list [-h] [-f FLOW_FILE] | ||
options: | ||
-h, --help show this help message and exit | ||
-f FLOW_FILE, --flow-file FLOW_FILE | ||
Location of flow file; default is ./flowfile.py | ||
Running a workflow | ||
------------------ | ||
|
||
.. code-block:: bash | ||
$ flow run --help | ||
usage: flow run [-h] [-f FLOW_FILE] [--dry-run] [--full-trace] NAME [KEY=VALUE ...] | ||
positional arguments: | ||
NAME Name of workflow | ||
KEY=VALUE Key/Value arguments added to flow context | ||
options: | ||
-h, --help show this help message and exit | ||
-f FLOW_FILE, --flow-file FLOW_FILE | ||
Location of flow file; default is ./flowfile.py | ||
--dry-run Dry run; do not execute actions | ||
--full-trace Show full trace on error. | ||
The ``run`` command takes a workflow name and a set of key/value pairs that are | ||
added to the flow context. | ||
|
||
The run command also includes tracing to report aid in the identification of | ||
errors within a flow and where they occurred. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ Contents | |
:maxdepth: 2 | ||
|
||
getting-started | ||
cli | ||
reference/index | ||
releases | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pyapp-flow" | ||
version = "0.16" | ||
version = "0.17" | ||
description = "Application workflow framework" | ||
authors = ["Tim Savage <[email protected]>"] | ||
license = "BSD-3-Clause" | ||
|
@@ -29,7 +29,7 @@ include = ["HISTORY"] | |
flow = "pyapp_flow.cli:main" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
python = "^3.10" | ||
rich = ">=12.4.4,<14.0.0" | ||
pyapp = "^4.10" | ||
typing-extensions = "^4.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.