Skip to content

Commit

Permalink
Remove boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
riton committed Sep 5, 2021
1 parent a224b77 commit 6340cdc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 42 deletions.
33 changes: 0 additions & 33 deletions .gitlab-ci.yml

This file was deleted.

12 changes: 6 additions & 6 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2020 IN2P3 Computing Centre, IN2P3, CNRS
Copyright © 2021 Remi Ferrand
Contributor(s): Remi Ferrand <remi.ferrand_at_cc.in2p3.fr>, 2020
Contributor(s): Remi Ferrand <riton.github_at_gmail(dot)com>, 2021
This software is a computer program whose purpose is to [describe
functionalities and technical features of your software].
Expand Down Expand Up @@ -40,8 +40,8 @@ import (
"os"
"time"

"github.com/spf13/cobra"
"github.com/riton/nagios-plugin-git-hosted-project-merge-requests/nagios"
"github.com/spf13/cobra"

log "github.com/sirupsen/logrus"

Expand All @@ -52,9 +52,9 @@ var cfgFile string

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "nagios-plugin-git-hosted-project-merge-requests",
Short: "Checks that a github / gitlab / gitea project has opened merge requests",
Long: ``,
Use: "nagios-plugin-git-hosted-project-merge-requests",
Short: "Checks that a github / gitlab / gitea project has opened merge requests",
Long: ``,
Run: nagios.ProbeCobraAdapter,
SilenceUsage: true,
SilenceErrors: true,
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright © 2020 IN2P3 Computing Centre, IN2P3, CNRS
Copyright © 2021 Remi Ferrand
Contributor(s): Remi Ferrand <remi.ferrand_at_cc.in2p3.fr>, 2020
Contributor(s): Remi Ferrand <riton.github_at_gmail(dot)com>, 2021
This software is a computer program whose purpose is to [describe
functionalities and technical features of your software].
Expand Down Expand Up @@ -38,9 +38,9 @@ package main
import (
"context"

"github.com/riton/nagiosplugin/v2"
"github.com/riton/nagios-plugin-git-hosted-project-merge-requests/cmd"
"github.com/riton/nagios-plugin-git-hosted-project-merge-requests/nagios"
"github.com/riton/nagiosplugin/v2"
)

func main() {
Expand Down

0 comments on commit 6340cdc

Please sign in to comment.