Files
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

30 lines
1.4 KiB
Go

package sys
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "fdisk",
Description: "Manipulate disk partition table",
Options: []spec.Option{
{Name: "--help", Description: "Show help for fdisk"},
{Name: "--version", Description: "Show version for lsblk"},
{Name: "--sector-size", Description: "Specify the sector size of the disk"},
{Name: "--protect-boot", Description: "Specify the compatibility mode, 'dos' or 'nondos'"},
{Name: "--color", Description: "Colorize the output"},
{Name: "--list", Description: "List the partition tables for the specified devices and then exit"},
{Name: "--list-details", Description: "Like --list, but provides more details"},
{Name: "--lock", Description: "Use exclusive BSD lock for device or file it operates"},
{Name: "--noauto-pt", Description: "Don't automatically create a default partition table on empty device"},
{Name: "--output", Description: "Desc"},
{Name: "--getsz", Description: "This option is DEPRECATED in favour of blockdev(8)"},
{Name: "--type", Description: "When listing partition tables, show sizes in 'sectors' or in 'cylinders'"},
{Name: "--cylinders", Description: "Specify the number of cylinders of the disk"},
{Name: "--heads", Description: "The argument when can be auto, never or always"},
{Name: "--wipe-partitions", Description: "The argument when can be auto, never or always"},
},
})
}