github.com/daixiang0/gci@v0.13.0/cmd/gci/print.go (about) 1 package gci 2 3 import ( 4 "github.com/daixiang0/gci/pkg/gci" 5 ) 6 7 // printCmd represents the print command 8 func (e *Executor) initPrint() { 9 e.newGciCommand( 10 "print path...", 11 "Outputs the formatted file to STDOUT", 12 "Print outputs the formatted file. If you want to apply the changes to a file use write instead!", 13 []string{"output"}, 14 true, 15 gci.PrintFormattedFiles) 16 }