Searching the Step Library

If you're writing a workflow, you'd probably like to avoid writing a step, if possible. AppTree has a CLI command that can be used to see what public steps already exist, and how to use them.

Searching For a Step

apptree search steps weather

Returns this to your console:

+-------------------+--------------+------------------------+---------+--------------+--------------+
| STEPNAME | PACKAGE NAME | INPUTS | OUTPUTS | DESCRIPTION | AUTHOR |
+-------------------+--------------+------------------------+---------+--------------+--------------+
| [email protected] | weather_pkg | City: required: false | Data | | ericwindmill |
| | | | | | |
+-------------------+--------------+------------------------+---------+--------------+--------------+
| TOTAL FOUND: | 1 |
+-------------------+--------------+------------------------+---------+--------------+--------------+

Getting Inputs for a Step

apptree steps scaffold --id weather_pkg:[email protected]

Returns this result:

┌────────────────────────────────────────────
│ Copy and Paste this yaml into your workflow:
- weather_pkg:[email protected]:
runIf: 'true == true'
inputs:
City: <INPUT VALUE> # required:false
outputs:
Data: <OUTPUT VAR NAME>
└────────────────────────────────────────────

You must be specific to use the scaffold step. The package name, step name and version are all required.