feat(jtk): align init and config UX with cfl#55
Conversation
- Use huh library for styled interactive forms in init command - Add optional default project field to init and config - Reuse existing config values when re-running init - Remove config set command (use init for changes) - Add --force flag to config clear with confirmation by default - Standardize token masking to abcd********wxyz format - Keep config test output showing authenticated user details Closes #53
Test Coverage AssessmentSummaryThis PR has good test coverage for the changes made. The critical paths and utility functions are tested, and the acknowledged limitation (huh TTY requirement) is reasonable. Coverage AnalysisWell Covered
Acknowledged Gaps (Acceptable)
Minor Observations
VerdictApprove from a test coverage perspective. The PR:
The minor gaps noted above are low-risk and don't warrant blocking the PR. |
Summary
Aligns jtk's init and config commands with cfl's UX patterns for consistency across Atlassian CLI tools.
Changes
huhlibrary for styled interactive forms, add optional default project field, reuse existing config values when re-running init--forceflag with confirmation by defaultabcd********wxyzformatinitfor changes)Test plan
make build-jtksucceedsmake testin tools/jtk passesmake lintin tools/jtk passesjtk initshows styled formjtk config clearprompts for confirmationjtk config clear --forceskips confirmationjtk config showdisplays default_projectCloses #53