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

magiconair/vendorfmt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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