Skip to content

feat: interactive project add/update commands#1

Merged
qdequele merged 6 commits into
mainfrom
feat/project-add-interactive-prompt
May 18, 2026
Merged

feat: interactive project add/update commands#1
qdequele merged 6 commits into
mainfrom
feat/project-add-interactive-prompt

Conversation

@curquiza

@curquiza curquiza commented May 3, 2026

Copy link
Copy Markdown
Member

Summary

  • msc project add <name> prompts interactively for URL and API key when --url is omitted
  • msc project update <name> allows updating an existing project's URL and API key (current URL shown as hint)
  • msc project list now shows [api key set] next to projects that have an API key configured
  • Empty API key input means no key is stored/key is removed

Test plan

  • msc project add myproject — verify URL and API key prompts appear
  • msc project add myproject --url http://localhost:7700 — verify only API key is prompted
  • msc project list — verify [api key set] appears only for projects with a key
  • msc project update myproject — verify current URL is shown as hint, input is empty
  • Leave API key empty on update — verify key is removed

🤖 Generated with Claude Code

curquiza and others added 6 commits May 3, 2026 12:55
When --url is omitted, prompt the user for the URL and API key
interactively. An empty API key means no key is stored.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Display [api key set] next to projects that have an api key configured,
without revealing the key value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Interactive command to update an existing project's URL and API key.
Current URL is shown as hint but input starts empty. Empty API key
removes the existing key.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@curquiza
curquiza requested a review from qdequele May 3, 2026 11:19

@qdequele qdequele left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, works for me, I saw some code optimization possible like in src/commands/project.rs:101, Config::load() is called twice in the update path (once at line 84, again at 101). That is not that important but a bit redundant.

@qdequele
qdequele merged commit bee189a into main May 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants