Files
iris-context/commands/text/truncate.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- 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
2026-07-05 11:27:30 +07:00

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"},
},
})
}