package tui type step int const ( // Docker Validation StepCheckDocker step = iota StepDockerInstall // Image Fetching StepDockerLogin StepDownloadImage // IP Stuff StepIPQuestion StepWireguardConfig StepGenerateWireguardFile StepDownloadWireguard StepRunWireguard // Docker Config StepAppConfig StepServerConfig StepDatabaseConfig StepCertConfig // Review StepReview // Finalizing StepGenerateFile StepRunDocker StepRunUpdater StepDone ) // isInputStep reports whether a step collects user input and therefore participates // in back navigation. Action/wait steps (downloads, file generation, container runs) // are excluded so that "back" never re-enters a side-effecting step. func isInputStep(s step) bool { switch s { case StepDockerLogin, StepIPQuestion, StepWireguardConfig, StepAppConfig, StepServerConfig, StepDatabaseConfig, StepCertConfig, StepReview: return true } return false }