Skip to content

Commit

Permalink
Merge pull request #19 from harakeishi/change_trv_init
Browse files Browse the repository at this point in the history
初回起動時にオプション入力後も動くように変更
  • Loading branch information
harakeishi authored Apr 27, 2024
2 parents 8bbfa20 + 6dcd34f commit 02c3346
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 02c3346

Please sign in to comment.