// Command slides-contract exports the live delegated operation schemas. package main import ( "amadan.net/oficina/slides/internal/slides" "encoding/json" "fmt" "os" ) func main() { operations, err := slides.AgentContracts() if err != nil { fmt.Fprintln(os.Stderr, "Could not export Slides operation contracts.") os.Exit(1) } encoder := json.NewEncoder(os.Stdout) encoder.SetIndent("", " ") if encoder.Encode(operations) != nil { os.Exit(1) } }