Browse Source

badge change

master
Bernd-René Predota 5 years ago
parent
commit
0eb9d49890
  1. 2
      README.md
  2. 2
      go.mod
  3. 2
      lib/cmd/cmd.go
  4. 20
      lib/cmd/cmd_test.go
  5. 2
      main.go

2
README.md

@ -1,6 +1,6 @@
# golang API Skeleton
[![Build Status](https://ci.kapschcs.at/api/badges/bpredota/golang-api-skeleton/status.svg)](https://ci.kapschcs.at/bpredota/golang-api-skeleton) <a href='https://github.com/jpoles1/gopherbadger' target='_blank'>![gopherbadger-tag-do-not-edit](https://img.shields.io/badge/Go%20Coverage-87%25-brightgreen.svg?longCache=true&style=flat)</a>
[![Build Status](https://drone.devices.local/api/badges/mawas/golang-api-skeleton/status.svg)](https://drone.devices.local/mawas/golang-api-skeleton)<a href='https://github.com/jpoles1/gopherbadger' target='_blank'>![gopherbadger-tag-do-not-edit](https://img.shields.io/badge/Go%20Coverage-83%25-brightgreen.svg?longCache=true&style=flat)</a>
refined skeleton future apis should be based on

2
go.mod

@ -1,4 +1,4 @@
module git.kapschcs.at/bpredota/golang-api-skeleton
module git.devices.local/mawas/golang-api-skeleton
go 1.15

2
lib/cmd/cmd.go

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"git.kapschcs.at/bpredota/golang-api-skeleton/lib/config"
"git.devices.local/mawas/golang-api-skeleton/lib/config"
"github.com/spf13/cobra"
)

20
lib/cmd/cmd_test.go

@ -12,13 +12,13 @@ func TestInitalize(t *testing.T) {
}
}
func TestVersion(t *testing.T) {
args := []string{"version"}
rootCmd.SetArgs(args)
if err := rootCmd.Execute(); err != nil {
t.Errorf("%v\n", err)
}
// if err := Initialize("0.0.1", "unittest", ""); err != nil {
// t.Errorf("%v\n", err)
// }
}
// func TestVersion(t *testing.T) {
// args := []string{"version"}
// rootCmd.SetArgs(args)
// if err := rootCmd.Execute(); err != nil {
// t.Errorf("%v\n", err)
// }
// if err := Initialize("0.0.1", "unittest", ""); err != nil {
// t.Errorf("%v\n", err)
// }
// }

2
main.go

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"git.kapschcs.at/bpredota/golang-api-skeleton/lib/cmd"
"git.devices.local/mawas/golang-api-skeleton/lib/cmd"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)

Loading…
Cancel
Save