From f07d781409485d56bbe0e8152900c5cdf2ec3d13 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 5 Oct 2019 18:48:21 +0000 Subject: [PATCH] more examples --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 0e5e493..1afd854 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,18 @@ _testdir/main.go cmd/ghglob/main.go ghglob.go ghmatcher/ghmatcher.go + +# List .js or .jsx files. +$ ghglob "**.jsx?" + +# As CLI arguments. e.g. https://github.com/koalaman/shellcheck +$ shellcheck $(ghglob '**/*.sh') + +# gofmt except test data. +$ gofmt -d -s $(ghglob '**.go' '!_testdir/**') + +# Run golint against only changed files. +$ git diff --name-only master | ghglob '**.go' | xargs -i golint {} ``` ## Packages