#!/bin/bash

set -e

if [ -z "$1" ]; then
    echo "Expected exactly one argument which is the protoc_plugin version to use"
else
    echo "Using protoc_plugin version $1"
    pub global activate protoc_plugin "$1"
fi

protoc --proto_path="." --dart_out=lib/src/proto info.proto
dartfmt -w lib/src/proto

#!/bin/bash

set -e

if [ -z "$1" ]; then
    echo "Expected exactly one argument which is the protoc_plugin version to use"
else
    echo "Using protoc_plugin version $1"
    pub global activate protoc_plugin "$1"
fi

protoc --proto_path="." --dart_out=lib/src/proto info.proto
dart format lib/src/proto

Change "dartfmt" to "dart format" in dart2js_info tool.
Change "dartfmt" to "dart format" in dart2js_info tool.

Change-Id: Id21c2f2ceb58f5007c55eeea6a1d57bb09f2f0c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215184
Auto-Submit: Bob Nystrom <afede3a9ebedb865bee78398feff6fbe97068f17@google.com>
Commit-Queue: Bob Nystrom <afede3a9ebedb865bee78398feff6fbe97068f17@google.com>
Commit-Queue: Joshua Litt <9f8daed1ab51574c9a48ffacb03e4a1adb4f880c@google.com>
Reviewed-by: Joshua Litt <9f8daed1ab51574c9a48ffacb03e4a1adb4f880c@google.com>
