Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Latest commit

 

History

History
57 lines (47 loc) · 805 Bytes

README.md

File metadata and controls

57 lines (47 loc) · 805 Bytes

Overview

vendorfmt rewrites a vendor/vendor.json file used by https://github.com/kardianos/govendor to a more merge friendly format.

Install

go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt

Usage

# format vendor/vendor.json
$ vendorfmt

# format other files
$ vendorfmt foo/bar/vendor.json

Before

{
	"comment": "",
	"ignore": "test",
	"package": [
		{
			"path": "appengine",
			"revision": ""
		},
		{
			"path": "appengine_internal",
			"revision": ""
		},
		{
			"path": "appengine_internal/base",
			"revision": ""
		}
	]
}

After

{
	"comment": "",
	"ignore": "test",
	"package": [
		{"path":"appengine","revision":""},
		{"path":"appengine_internal","revision":""},
		{"path":"appengine_internal/base","revision":""}
	]
}