1.7 KiB
1.7 KiB
Why
The CLI currently supports read-only operations for projects and boards (list, get) but has no ability to create or delete them. Users who need to set up new projects and boards must use the Planka web UI. Additionally, write operations that fail due to insufficient permissions return raw API errors rather than actionable guidance.
What Changes
- Add
project createcommand with--name,--type, and optional--descriptionflags - Add
project deletecommand accepting a project ID - Add
board createcommand with--project,--name, and optional--positionflags - Add
board deletecommand accepting a board ID - Add
CreateProject,DeleteProject,CreateBoard,DeleteBoardclient methods - Add a shared
friendlyAPIErrorhelper in thecmdpackage that translates API error status codes (401, 403, 404) into human-readable messages with permission context - New commands use the shared helper; existing commands are unchanged (can adopt it later)
Capabilities
New Capabilities
permission-errors: Shared helper for translating API permission/auth errors into user-friendly CLI messages
Modified Capabilities
api-client: Adding CreateProject, DeleteProject, CreateBoard, DeleteBoard client methodscli-commands: Adding project create/delete and board create/delete subcommands
Impact
client/projects.go— new CreateProject, DeleteProject methodsclient/boards.go— new CreateBoard, DeleteBoard methodscmd/errors.go— new file with friendlyAPIError helpercmd/project.go— new create and delete subcommandscmd/board.go— new create and delete subcommands- No new dependencies, no model changes, no breaking changes