Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.67 KB

readme.md

File metadata and controls

66 lines (48 loc) · 1.67 KB

Elwood Run Actions

Actions are the building blocks of Elwood Run. They are small, reusable, and composable units of work that can be combined to create workflows. Find out more at elwood.run

Documentation

Read the full documentation at elwood.run/docs

Standard Actions

  • echo - Print a message to the console
  • run - Run a command or execute script code
  • install
    • ffmpeg - Install the ffmpeg & ffprobe
    • whisper - Install the OpenAI's Whisper
  • fs
    • copy - Copy files and directories
    • mkdir - Create a directory
    • read - Read a file to an output or stdout
    • write - Write data to a file

SDK

The Elwood Run Action SDK provides reusable helpers to make developing actions easier.

Installation

# jsr
jsr add @elwood/run-action-sdk

# deno 
deno add @elwood/run-action-sdk

# npm
npx jsr add @elwood/run-action-sdk

Usage

# import the SDK
import { sdk } from "https://x.elwood.run/a/[email protected]"

# using JSR
import { sdk } from "jsr:@elwood/run-action-sdk"


# get an input variable
const value = await sdk.input.get("name")

API

  • args - Action Arguments
  • command - Execute Commands
  • fetch - Fetch Data
  • fs - File System
  • input - Action Input Variables
  • install - Install Dependencies
  • io - Standard Input/Output
  • output - Action Output Variables
  • path - Path Helpers