Add recordable trash, archive, and restore subcommands#259
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds shared “trash / archive / restore” subcommands for recordable entities and wires them into multiple existing command groups, updating the command catalog and CLI surface snapshot accordingly.
Changes:
- Introduces reusable
newRecordableTrashCmd/newRecordableArchiveCmd/newRecordableRestoreCmdhelpers backed byrunRecordingsStatus. - Adds
trash,archive, andrestoresubcommands to todos, todolists, messages, cards, files (and thus docs/uploads/vaults via aliases), and comments. - Updates the command catalog (
CommandCategories) and.surfacesnapshot to reflect the expanded command surface.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| internal/commands/todos.go | Adds trash/archive/restore subcommands to the todos command group. |
| internal/commands/todolists.go | Adds trash/archive/restore subcommands to the todolists command group. |
| internal/commands/recordings.go | Adds shared recordable command constructors that call runRecordingsStatus. |
| internal/commands/messages.go | Adds trash/archive/restore subcommands to messages. |
| internal/commands/files.go | Adds trash/archive/restore subcommands to files (and aliases inherit them). |
| internal/commands/comment.go | Adds trash/archive/restore subcommands to comments. |
| internal/commands/commands.go | Updates command catalog action lists to include trash/archive/restore for affected commands. |
| internal/commands/cards.go | Adds trash/archive/restore subcommands to cards. |
| .surface | Updates CLI surface snapshot for new subcommands/flags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7b474fe to
5e9baa0
Compare
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Summary by cubic
Add trash, archive, and restore commands for recordable items to manage status from the CLI. Applies to todos, todolists, messages, cards, files, comments, docs, uploads, and vaults, and updates the command catalog and CLI surface.
newRecordableTrashCmd,newRecordableArchiveCmd,newRecordableRestoreCmd(usesrunRecordingsStatuswith "trashed"/"archived"/"active").CommandCategoriesand regenerated.surfaceto include the new actions in listings and flags, and to show "download" where applicable.Written for commit 5e9baa0. Summary will update on new commits.