Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 939 Bytes

creating-runnables.md

File metadata and controls

28 lines (17 loc) · 939 Bytes

Creating Runnables

{% hint style="info" %} You'll need to install the subo CLI tool and Docker to use Atmo.

To install the tool, visit the subo repository.

Docker is used to build Runnables and run the Atmo development server. {% endhint %}

Create a Runnable

You can create a new Runnable with subo:

> subo create runnable myfunction

By default, Rust will be used. To use Swift, pass --lang:

> subo create runnable myswiftfunction --lang=swift

Each runnable has a .runnable.yaml that describes it. The name you provide to the create runnable command is the name that will be used to call the Runnable in Directive handlers, which are discussed next.

Your Runnables will use the Runnable API to access resources such as the network, files, and more. Read more by clicking on the link or continuing through the guide.