Reduce cyclomatic complexity of tui() by extracting startup helpers #12
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/12/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extracts two module-level helpers from tui() to bring its complexipy score from 20 down to 1.
_ensure_initial_credentials() handles .envrc migration, reading credentials, and the initial OAuth flow.
_maybe_renew_token() handles the token-expiry check and opportunistic renewal.
Closes #11
Changes cherry-picked into PR #10 (feat/issue-8-9-error-handling-config) as commits
607142b,36667ce, andbc58987. Closing this PR.Pull request closed