Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pulsedemon/nexrender-action-run-command
Run shell commands as a nexrender action
https://github.com/pulsedemon/nexrender-action-run-command
Last synced: about 2 months ago
JSON representation
Run shell commands as a nexrender action
- Host: GitHub
- URL: https://github.com/pulsedemon/nexrender-action-run-command
- Owner: pulsedemon
- License: mit
- Created: 2022-04-02T01:29:25.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T05:58:04.000Z (over 2 years ago)
- Last Synced: 2024-09-16T05:26:24.307Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Action: Run Command
![npm](https://img.shields.io/npm/v/nexrender-action-run-command)
![npm](https://img.shields.io/npm/dw/nexrender-action-run-command)
[![install size](https://packagephobia.com/badge?p=nexrender-action-run-command)](https://packagephobia.com/result?p=nexrender-action-run-command)Run shell commands
## Installation
```
npm i nexrender-action-run-command -g
```## Usage
### Use aws cli to upload the output file to s3 - postrender
```js
// job.json
{
"actions": {
"postrender": [
{
"module": "nexrender-action-run-command",
"command": "aws s3 cp {file} s3://bucket-name/ --profile profilename",
}
]
}
}
```### list directory - prerender
```js
// 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}`