Skip to content

feat: add profile rename command#332

Closed
njbrake wants to merge 1 commit intomainfrom
feat/rename-profile
Closed

feat: add profile rename command#332
njbrake wants to merge 1 commit intomainfrom
feat/rename-profile

Conversation

@njbrake
Copy link
Copy Markdown
Owner

@njbrake njbrake commented Feb 26, 2026

Summary

  • Adds aoe profile rename <old_name> <new_name> CLI command (with mv alias) to rename profiles
  • Renames the profile directory on disk, moving all sessions, groups, and config with it
  • Automatically updates the default profile setting if the renamed profile was the default
  • Validates new name (non-empty, no path separators, doesn't already exist)

Fixes #328

Test plan

  • 7 new integration tests covering: basic rename, default profile update, non-default preservation, rename to existing name, nonexistent profile, empty name, path separators
  • Full test suite passes (692 unit tests + 14 profile management tests + all integration tests)
  • cargo fmt clean
  • cargo clippy clean
  • Manual: aoe profile create foo && aoe profile rename foo bar && aoe profile list
  • Manual: set default profile, rename it, verify default updated

🤖 Generated with Claude Code

Adds `aoe profile rename <old> <new>` (alias: `mv`) to rename profiles.
Renames the profile directory and updates the default profile config if
the renamed profile was the default.

Fixes #328

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ PR Template Missing

This PR appears to be missing the required checklist from the PR template.

Please edit your PR description to include the checklist section. The checklist helps maintainers review your contribution.

This PR will be automatically closed in 24 hours if the template is not restored.

If you're using an AI coding tool, please ensure it preserves the PR template.

@njbrake njbrake closed this Feb 26, 2026
@njbrake njbrake deleted the feat/rename-profile branch February 26, 2026 14:39
@njbrake njbrake restored the feat/rename-profile branch February 26, 2026 14:42
@njbrake njbrake deleted the feat/rename-profile branch February 26, 2026 14:49
@njbrake njbrake restored the feat/rename-profile branch February 26, 2026 14:54
@njbrake njbrake deleted the feat/rename-profile branch February 26, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: rename profile

1 participant