Repository F# setup
open System
open System.IO
open System.Threading
open System.Threading.Tasks
open Axial
open Axial.Layers
open Axial.Console
open Axial.FileSystem
open Axial.Hosting
open Axial.Hosting.Browser
open Axial.Hosting.Node
open Axial.HttpClient
open Axial.PlatformService
open Axial.Process
open Axial.State
open Axial.Telemetry
open Axial.Telemetry.JavaScriptOpen Axial.Process.DSL for command-line-shaped authoring:
open Axial.Process.DSL
let workflow =
cmd $"device-tool connect {deviceId}"
|> cwd workspace
|> env "DEVICE_MODE" "service"
|> timeout (TimeSpan.FromSeconds 30)
|> capturelet workflow =
cmd $"device-tool authenticate {secret token}"
|> capturelet workflow =
bash $"printf '%s' {value} | tr '[:lower:]' '[:upper:]'"
|> captureAt a command-line host boundary, Script.run console workflow executes against live services, prints a typed process failure through the supplied console service, and returns a host exit code.

