Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.01 KB

BLUEPRINT.md

File metadata and controls

27 lines (19 loc) · 1.01 KB

Sample Plugin Project

This project is a sample that can be used as a blueprint to kickoff your own, golang based kn plugin.

Init

Just copy over the content of this repository (except maybe this file), and adapt the following files:

Add your code

To add your code, look into internal/command and check the commands that are available there. It is recommended to keep version.go but you should probably remove print.go and add your own commands.

The commands that you create should then finally be added in internal/root/root.go to your main Cobra command.

TODO: More integration how to reference to support libraries and connect to the cluster