#!/bin/sh # script/fmt: format all files (writes). set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)" main() { cd "$ROOT" # Go, then Markdown and JSON, through the same scripts script/fmt-check # uses, so both see the same files and the same tool versions. "$SCRIPT_DIR/gofumpt" --write "$SCRIPT_DIR/prettier" --write } main "$@"