1.0.5 • Published 2 years ago

nexrender-action-run-command v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Action: Run Command

npm npm install size

Run shell commands

Installation

npm i nexrender-action-run-command -g

Usage

Use aws cli to upload the output file to s3 - postrender

// job.json
{
    "actions": {
        "postrender": [
            {
                "module": "nexrender-action-run-command",
                "command": "aws s3 cp {file} s3://bucket-name/ --profile profilename",
            }
        ]
    }
}

list directory - prerender

// job.json
{
    "actions": {
        "prerender": [
            {
                "module": "nexrender-action-run-command",
                "command": "ls -al /path/to/some/directory",
            }
        ]
    }
}

Information

This should be able to run most commands, but it hasn't been heavily tested. If you run into an issue, let me know.

  • command required argument - file path of output file can be passed with {file}
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago