mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-09-19 15:12:47 +02:00
35 lines
789 B
Go
35 lines
789 B
Go
// Copyright (c) 2020, the Drone Plugins project authors.
|
|
// Copyright (c) 2021, Robert Kaussow <mail@thegeeklab.de>
|
|
|
|
// Use of this source code is governed by an Apache 2.0 license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/thegeeklab/wp-matrix/plugin"
|
|
|
|
wp "github.com/thegeeklab/wp-plugin-go/plugin"
|
|
)
|
|
|
|
//nolint:gochecknoglobals
|
|
var (
|
|
BuildVersion = "devel"
|
|
BuildDate = "00000000"
|
|
)
|
|
|
|
func main() {
|
|
settings := &plugin.Settings{}
|
|
options := wp.Options{
|
|
Name: "wp-matrix",
|
|
Description: "Send messages to a Matrix room",
|
|
Version: BuildVersion,
|
|
VersionMetadata: fmt.Sprintf("date=%s", BuildDate),
|
|
Flags: settingsFlags(settings, wp.FlagsPluginCategory),
|
|
}
|
|
|
|
plugin.New(options, settings).Run()
|
|
}
|