Skip to content

Commit

Permalink
初回起動時にオプション入力後も動くように
Browse files Browse the repository at this point in the history
  • Loading branch information
harakeishi committed Apr 27, 2024
1 parent 8bbfa20 commit 6dcd34f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ var rootCmd = &cobra.Command{
trv.Draw()
} else {
trv.CreateConfig()
err = trv.Init()
if err != nil {
return err
}
trv.Draw()
}

return nil
Expand Down

0 comments on commit 6dcd34f

Please sign in to comment.