github.com/daixiang0/gci@v0.13.0/cmd/gci/diff.go (about) 1 package gci 2 3 import ( 4 "github.com/daixiang0/gci/pkg/gci" 5 ) 6 7 // diffCmd represents the diff command 8 func (e *Executor) initDiff() { 9 e.newGciCommand( 10 "diff path...", 11 "Prints a git style diff to STDOUT", 12 "Diff prints a patch in the style of the diff tool that contains the required changes to the file to make it adhere to the specified formatting.", 13 []string{}, 14 true, 15 gci.DiffFormattedFiles) 16 }