Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

go-gilbert/gilbert-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example plugin

This repo is obsolete, please see this issue

This is a sample plugin for Gilbert task runner that prints a message to log

Actions

hello-world

A simple action that prints text to the console

Usage

plugins:
  - github://github.com/go-gilbert/gilbert-plugin-example

tasks:
  hello-world:
    - action: 'example-plugin:hello-world'
      params:
        message: 'hello world'

Params

  • message - a message to print

Development

Compatibility

Each plugin should follow these simple rules:

  • Should use compatible Go version (currently: Go 1.12.x)

  • Should use go modules to avoid package scopes issue during library load process (see issue)

  • Should use the same SDK version as target Gilbert version

Structure

Each plugin should exports two procedures:

GetPluginName() string

Returns plugin name

func GetPluginActions() sdk.Actions

Returns a set of plugin actions exported by plugin

About

Gilbert Plugin Example

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages