2.0.0 • Published 7 years ago
workflow-transformer-apply-arguments-to-fields v2.0.0
workflow-transformer-apply-arguments-to-fields
This transformer will call all functions, expect open, on all apps with
the arguments object. The arguments object contains the command line arguments
passed to the workflow command.
Installation
npm install workflow-transformer-apply-arguments-to-fieldsAdd the plugin to your ~/.workflow/config.js file.
import {WorkflowTranformerApplyArgumentsToFields} from "workflow-transformer-apply-arguments-to-fields";
export const config = {
transformers: [new WorkflowTranformerApplyArgumentsToFields()]
...
};Example
This example contains a
export const flow = render(
<Workspace name="File example" args=["file"]>
<Atom file={({file}) => file} />
</Workspace>
);workflow AtomFile.js ./index.js2.0.0
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
1.0.0-beta
7 years ago
0.1.0
7 years ago
0.1.0-beta.0
7 years ago