ilyakooo0 / airlock / Ur.Cmd

This module is conceptually similar to Platform.Cmd, but also allows you to send Urbit requests.


type alias Cmd msg =
List (Internal.Cmd msg)

Like Cmd from Platform.Cmd, but for Urbit commands.

poke : { ship : Ur.Types.Ship, agent : Ur.Types.Agent, mark : Ur.Types.Mark, noun : Ur.Types.Noun } -> Cmd msg

Sends a %poke to a Gall Agent.

poke
    { ship = "~zod"
    , agent = "journal"
    , mark = "journal-action"
    , noun = C.cell (C.cord "del") (C.bigint id)
    }

cmd : Platform.Cmd.Cmd msg -> Cmd msg

Turns a Platform.Cmd command into a Ur.Cmd command.

none : Cmd msg

A command that does exactly nothing.

batch : List (Cmd msg) -> Cmd msg

Batches multiple commands into one. Similar to Platform.Cmd.batch.