oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1// Command slides-contract exports the live delegated operation schemas.
2package main
3
4import (
5 "amadan.net/oficina/slides/internal/slides"
6 "encoding/json"
7 "fmt"
8 "os"
9)
10
11func main() {
12 operations, err := slides.AgentContracts()
13 if err != nil {
14 fmt.Fprintln(os.Stderr, "Could not export Slides operation contracts.")
15 os.Exit(1)
16 }
17 encoder := json.NewEncoder(os.Stdout)
18 encoder.SetIndent("", " ")
19 if encoder.Encode(operations) != nil {
20 os.Exit(1)
21 }
22}
23