workflow-transformer-apply-arguments-to-fields

2.0.0 • Public • Published

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-fields

Add 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.js

Package Sidebar

Install

npm i workflow-transformer-apply-arguments-to-fields

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • havardh