tailscale/yarnfmt
- 315 bytes
- View raw
1#!/usr/bin/env bash
3set -o errexit
4set -o nounset
6# Print a command in blue, then run the command
7run_command() {
8 echo ""
9 echo -e "\033[34m-> $@\033[0m"
10 bash -c "$@"
11}
13run_command './tool/yarn --cwd control/adminhttp/panel run format'
14run_command './tool/yarn --cwd control/adminhttp/panel run lint'