Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add plugin system - plugin execution #1040

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jun 6, 2022

  1. plugin: List k3d plugins

    Add a new command `k3d plugin list` that lists plugins inside a folder,
    by default it is `$HOME/.k3d/plugins`.
    
    Every folder inside the plugins directory is considered a plugin and it
    must contain a manifest named `k3d-plugin.yaml`. This file describes a
    plugin, so it must have a name, a version, a description and an help
    message.
    
    Here's an example of a plugin manifest:
    ```yaml
        ---
        name: env
        version: "0.0.1"
        shortHelpMessage: "Print k3d env variables"
        helpMessage: "Print k3d env variables"
        command: <command to list env variables>
    ```
    FedericoAntoniazzi committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    5da4070 View commit details
    Browse the repository at this point in the history
  2. plugin: Add plugin commands to k3d

    Load plugins as k3d subcommands and execute the one specified.
    FedericoAntoniazzi committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    dbaabcb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2357827 View commit details
    Browse the repository at this point in the history