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

Rewrite vendor.json to more merge-friendly format

License

Notifications You must be signed in to change notification settings

magiconair/vendorfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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":""}
	]
}

About

Rewrite vendor.json to more merge-friendly format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages