fix: validate app name in app-scoped commands

This commit is contained in:
Jose Diaz-Gonzalez committed 2026-09-24 18:14:53 -04:00
1 parent 114c6115b9
commit a4484d354b
22 files changed
+213 -35

No files matched your search

+9
View File
@@ -148,6 +148,15 @@ func CommandList(format string, dokkuManaged bool) error {
return nil
}
// CommandRebuild rebuilds network settings for an app
func CommandRebuild(appName string) error {
if err := common.VerifyAppName(appName); err != nil {
return err
}
return BuildConfig(appName)
}
// CommandRebuildall rebuilds network settings for all apps
func CommandRebuildall() error {
apps, err := common.DokkuApps()