Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SetupCmd = cobra.Command{ Use: "setup", Short: "Interactive setup for Mithril configuration", Run: func(cmd *cobra.Command, args []string) { runSetup() }, } DoctorCmd = cobra.Command{ Use: "doctor", Short: "Check system health and configuration", Run: func(cmd *cobra.Command, args []string) { if migrateFlag { runMigrate() return } runDoctor() }, } )
Functions ¶
func MigrateConfig ¶
MigrateConfig checks if a config file is missing [lightbringer] or [consensus] sections and adds them. Returns true if any migration was performed.
func NewSetupModel ¶
NewSetupModel creates a setup model for embedding in the dashboard. configPath overrides the output path (pass "" for default).
func SetupIsDone ¶
SetupIsDone returns true if the setup model has reached the done screen.
func SetupIsFirstScreen ¶
SetupIsFirstScreen returns true if the setup wizard is on the initial mode selection screen.
Types ¶
type DiskInfo ¶
DiskInfo represents a detected disk/mount
func DetectDisks ¶
func DetectDisks() []DiskInfo
DetectDisks returns mounted filesystems with free space info.
func (DiskInfo) FormatDiskOption ¶
FormatDiskOption returns a display string for a disk.
Click to show internal directories.
Click to hide internal directories.