Files

15 lines
360 B
Bash

#!/bin/bash
# Install the speakeasy CLI
curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
# Setup samples directory
rmdir samples || true
mkdir samples
# Go module commands
go mod download
go mod tidy
# Generate starter usage sample with speakeasy
speakeasy generate usage -s openapi/v2.yaml -l go -o samples/root.go