Skip to content

Implement plugin system #6

@tobiase

Description

@tobiase

Overview

Allow extending wt with plugins from external repositories.

Priority: Low - This is a nice-to-have feature but not essential for core functionality.

Design

Plugin structure

my-wt-plugin/
├── plugin.yaml     # Metadata
├── main.go        # Plugin code
└── README.md

plugin.yaml

name: deploy
version: 1.0.0
description: Deploy worktree to staging
commands:
  - name: deploy
    description: Deploy current worktree

Commands

  • wt plugin add github.com/user/wt-deploy
  • wt plugin list
  • wt plugin remove deploy
  • wt plugin create my-plugin

Implementation considerations

  • Plugin discovery and loading
  • Version management
  • Security (signing?)
  • Plugin isolation
  • Configuration merging

MVP scope

  • Simple executable plugins
  • JSON/stdout communication
  • Manual installation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions