new-plugin

Welcome, lets get started with your new Tanzu plugin repository.

Getting Started

First, run make init to ensure your plugins go.sum is generated.

Generate a plugin

Add a plugin with the tanzu cli: tanzu builder cli add-plugin myplugin

Directory Structure

artifacts/: Where you plugins build output will be located

cmd/plugin/: Path where you plugins main directory will live

cmd/plugin//test: Plugins are required to have a test command defined

Commands

make build: builds your plugin artifacts make lint: run the golangci linter on your plugin code