Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
aliariff committed Aug 29, 2019
1 parent b8094f6 commit 5dcd05f
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
</p>

<p align="center">
<a href="https://github.com/trivago/grafana-datasource-to-yaml/actions">
<img alt="Build Status" src="https://github.com/trivago/grafana-datasource-to-yaml/workflows/Go/badge.svg" />
<a href="https://github.com/trivago/hamara/actions">
<img alt="Build Status" src="https://github.com/trivago/hamara/workflows/Go/badge.svg" />
</a>
<a href="https://codecov.io/gh/trivago/grafana-datasource-to-yaml">
<img alt="Coverage Status" src="https://codecov.io/gh/trivago/grafana-datasource-to-yaml/branch/master/graph/badge.svg" />
<a href="https://codecov.io/gh/trivago/hamara">
<img alt="Coverage Status" src="https://codecov.io/gh/trivago/hamara/branch/master/graph/badge.svg" />
</a>
<a href="https://goreportcard.com/report/github.com/trivago/grafana-datasource-to-yaml">
<img alt="Report Card" src="https://goreportcard.com/badge/github.com/trivago/grafana-datasource-to-yaml" />
<a href="https://goreportcard.com/report/github.com/trivago/hamara">
<img alt="Report Card" src="https://goreportcard.com/badge/github.com/trivago/hamara" />
</a>
</p>

Expand All @@ -23,7 +23,7 @@
Retrieve datasources from existing Grafana and export it into a YAML provisioning file
Usage:
grafana-datasource-to-yaml export [flags]
hamara export [flags]
Flags:
-h, --help help for export
Expand All @@ -36,22 +36,22 @@ Flags:

```
export GRAFANA_API_KEY=<your API key here>
grafana-datasource-to-yaml export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
hamara export --host=localhost:3000 --key=$GRAFANA_API_KEY > datasources.yaml
cat datasources.yaml
```

**Installation Options**
---

1. Download the `grafana-datasource-to-yaml` binary from Releases tab.
1. Download the `hamara` binary from Releases tab.

2. Install with `go get` (Installed Go required)
+ `$ go get -u github.com/trivago/grafana-datasource-to-yaml`
+ `$ grafana-datasource-to-yaml`
+ `$ go get -u github.com/trivago/hamara`
+ `$ hamara`

**How to Contribute**
---

1. Clone repo and create a new branch: `$ git checkout https://github.com/trivago/grafana-datasource-to-yaml -b name_for_new_branch`.
1. Clone repo and create a new branch: `$ git checkout https://github.com/trivago/hamara -b name_for_new_branch`.
2. Make changes and test
3. Submit Pull Request with comprehensive description of changes
2 changes: 1 addition & 1 deletion cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/trivago/grafana-datasource-to-yaml/pkg/grafana"
"github.com/trivago/hamara/pkg/grafana"
)

type exportCmd struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/trivago/grafana-datasource-to-yaml/cmd"
"github.com/trivago/grafana-datasource-to-yaml/pkg/grafana"
"github.com/trivago/hamara/cmd"
"github.com/trivago/hamara/pkg/grafana"
)

type grafanaRestClientMock struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/trivago/grafana-datasource-to-yaml/pkg/grafana"
"github.com/trivago/hamara/pkg/grafana"
)

func NewRootCmd(args []string) *cobra.Command {
cmd := &cobra.Command{
Use: "grafana-datasource-to-yaml",
Use: "hamara",
Short: "Exporter of grafana datasources to YAML",
Long: `A tool for export datasources from the existing Grafana DB into a YAML provisioning file`,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/trivago/grafana-datasource-to-yaml/cmd"
"github.com/trivago/hamara/cmd"
)

func TestRootCmd(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/testdata/no-args.golden
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
A tool for export datasources from the existing Grafana DB into a YAML provisioning file

Usage:
grafana-datasource-to-yaml [command]
hamara [command]

Available Commands:
export Export datasources
help Help about any command

Flags:
-h, --help help for grafana-datasource-to-yaml
-h, --help help for hamara

Use "grafana-datasource-to-yaml [command] --help" for more information about a command.
Use "hamara [command] --help" for more information about a command.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/trivago/grafana-datasource-to-yaml
module github.com/trivago/hamara

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/trivago/grafana-datasource-to-yaml/cmd"
import "github.com/trivago/hamara/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion pkg/grafana/rest-client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/trivago/grafana-datasource-to-yaml/pkg/grafana"
"github.com/trivago/hamara/pkg/grafana"
"gopkg.in/h2non/gock.v1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/grafana/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/trivago/grafana-datasource-to-yaml/pkg/grafana"
"github.com/trivago/hamara/pkg/grafana"
)

func TestWriteTo(t *testing.T) {
Expand Down

0 comments on commit 5dcd05f

Please sign in to comment.