Files
iris-context/commands/sys/fdisk.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

30 lines
1.4 KiB
Go

package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "fdisk",
Description: "Manipulate disk partition table",
Options: []core.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"},
},
})
}