github.com/daixiang0/gci@v0.13.0/cmd/gci/write.go (about)

     1  package gci
     2  
     3  import (
     4  	"github.com/daixiang0/gci/pkg/gci"
     5  )
     6  
     7  // writeCmd represents the write command
     8  func (e *Executor) initWrite() {
     9  	e.newGciCommand(
    10  		"write path...",
    11  		"Formats the specified files in-place",
    12  		"Write modifies the specified files in-place",
    13  		[]string{"overwrite"},
    14  		false,
    15  		gci.WriteFormattedFiles)
    16  }