Skip to content

[jtk] Align init and config UX with cfl #53

@rianjs

Description

@rianjs

Summary

Align jtk's init and config commands with cfl's UX patterns for consistency across the Atlassian CLI tools.

Changes Required

init command

  • Use huh library for styled interactive forms (currently uses raw bufio prompts)
  • Add optional default project field - similar to cfl's default space
  • Reuse existing config values when re-running init (pre-populate form with current values so user can selectively change them)

config subcommands

  • Remove config set - users should use init to change values (init will reuse existing)
  • Add --force flag to config clear - require confirmation by default (like cfl)
  • Consistent token masking - use abcd****wxyz format instead of abcd...wxyz

Keep as-is

  • config test output showing authenticated user details (this is better than cfl's simple "success!" message)

TLDR

Remove config set, add confirmation to config clear, upgrade init to use huh forms with default project option, and reuse existing config values on re-init.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions