21 lines
302 B
Go
21 lines
302 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
matrixbot "roese.dev/kra-jenkins-matrixbot-message/matrix-bot"
|
|
"roese.dev/kra-jenkins-matrixbot-message/modules/config"
|
|
)
|
|
|
|
func init() {
|
|
config.LoadConfig()
|
|
}
|
|
|
|
func main() {
|
|
if len(os.Args) == 2 {
|
|
projectName := os.Args[1]
|
|
|
|
matrixbot.SendMessage(projectName)
|
|
}
|
|
}
|