- I think it would be better if one for commands only, one for the spec handling core logic so people won't be confused by the core logic inside the commands folder (cleaner I guess) - Regen docs
21 lines
678 B
Go
21 lines
678 B
Go
package text
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/spec"
|
|
)
|
|
|
|
func init() {
|
|
spec.Register(&spec.Spec{
|
|
Name: "truncate",
|
|
Description: "Shrink or extend the size of a file to the specified size",
|
|
Options: []spec.Option{
|
|
{Name: "--no-create", Description: "Do not create any files"},
|
|
{Name: "--io-blocks", Description: "Treat SIZE as number of IO blocks instead of bytes"},
|
|
{Name: "--reference", Description: "Base size on RFILE"},
|
|
{Name: "--size", Description: "Set or adjust the file size by SIZE bytes"},
|
|
{Name: "--help", Description: "Show help for truncate"},
|
|
{Name: "--version", Description: "Output version information and exit"},
|
|
},
|
|
})
|
|
}
|