Skip to content

Commit

Permalink
fix: reorder form to have custom dir on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex-82 committed Sep 20, 2024
1 parent d1bf418 commit 0c5a71a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,25 @@ func main() {
log.Fatal(err)
}

switch formData.action {
case "migrate":
if formData.action == "migrate" {
err = GetMigrationType(&formData, theme)
if err != nil {
log.Fatal(err)
}
case "upload":
err = GetSelectedMigration(&formData, theme)
if err != nil {
log.Fatal(err)
}
}

err = GetDirectory(&formData, theme)
if err != nil {
log.Fatal(err)
}

if formData.action == "upload" {

err = GetSelectedMigration(&formData, theme)
if err != nil {
log.Fatal(err)
}
}

err = DisplaySummary(&formData, theme)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 0c5a71a

Please sign in to comment.