Skip to content

Commit

Permalink
[chore] change package name (#22)
Browse files Browse the repository at this point in the history
* chore: change package name to `deb-sig/double-entry-generator`

Signed-off-by: Triple-Z <me@triplez.cn>

* add CODEOWNERS file

- add `help` target in Makefile

Signed-off-by: Triple-Z <me@triplez.cn>

* update CODEOWNERS

Signed-off-by: Triple-Z <me@triplez.cn>
  • Loading branch information
Triple-Z authored Jun 24, 2021
1 parent cfa5e4a commit 690e52b
Show file tree
Hide file tree
Showing 22 changed files with 69 additions and 51 deletions.
15 changes: 15 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ref to https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners

* @deb-sig/generator-dev

/.github/ @gaocegege @Triple-Z

/hack/ @gaocegege

/doc/ @gaocegege

Makefile @gaocegege @Triple-Z

*.go @gaocegege @Triple-Z

/pkg/ @gaocegege @Triple-Z
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Ref https://github.com/caicloud/golang-template-project/blob/master/Makefile

# This repo's root import path (under GOPATH).
ROOT := github.com/gaocegege/double-entry-generator
ROOT := github.com/deb-sig/double-entry-generator

# Target binaries. You can build multiple binaries for a single project.
TARGETS := double-entry-generator
Expand Down Expand Up @@ -43,9 +43,12 @@ BIN_DIR := $(GOPATH)/bin
GOLANGCI_LINT := $(BIN_DIR)/golangci-lint

# All targets.
.PHONY: lint test build container push
.PHONY: lint test build container push help

build: build-local
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

build: build-local ## Build the project

build-local:
@for target in $(TARGETS); do \
Expand All @@ -56,6 +59,6 @@ build-local:
$(CMD_DIR)/; \
done

install: build
install: build ## Install the double-entry-generator binary
@install ./bin/double-entry-generator /usr/local/bin
@echo "Installed double-entry-generator at /usr/local/bin/double-entry-generator !"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

## 安装

[GitHub Release](https://github.com/gaocegege/double-entry-generator/releases) 页面中下载相应架构的二进制文件到本地即可。
[GitHub Release](https://github.com/deb-sig/double-entry-generator/releases) 页面中下载相应架构的二进制文件到本地即可。

源码安装:
```bash
go get -u github.com/gaocegege/double-entry-generator
go get -u github.com/deb-sig/double-entry-generator
```

## 使用
Expand Down
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/gaocegege/double-entry-generator
module github.com/deb-sig/double-entry-generator

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion hack/generate-doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/gaocegege/double-entry-generator/pkg/cmd"
"github.com/deb-sig/double-entry-generator/pkg/cmd"
"github.com/spf13/cobra/doc"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/
package main

import "github.com/gaocegege/double-entry-generator/pkg/cmd"
import "github.com/deb-sig/double-entry-generator/pkg/cmd"

func main() {
cmd.Execute()
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyser/alipay/alipay.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package alipay
import (
"strings"

"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/gaocegege/double-entry-generator/pkg/util"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/util"
)

type Alipay struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyser/huobi/huobi.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package huobi

import (
"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/gaocegege/double-entry-generator/pkg/util"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/util"
)

type Huobi struct {
Expand Down
12 changes: 6 additions & 6 deletions pkg/analyser/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package analyser
import (
"fmt"

"github.com/gaocegege/double-entry-generator/pkg/analyser/alipay"
"github.com/gaocegege/double-entry-generator/pkg/analyser/huobi"
"github.com/gaocegege/double-entry-generator/pkg/analyser/wechat"
"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/consts"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/analyser/alipay"
"github.com/deb-sig/double-entry-generator/pkg/analyser/huobi"
"github.com/deb-sig/double-entry-generator/pkg/analyser/wechat"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/consts"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// Interface is the interface of analyser.
Expand Down
6 changes: 3 additions & 3 deletions pkg/analyser/wechat/wechat.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package wechat

import (
"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/gaocegege/double-entry-generator/pkg/util"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/util"
)

type Wechat struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/gaocegege/double-entry-generator/pkg/compiler"
"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/consts"
"github.com/gaocegege/double-entry-generator/pkg/provider"
"github.com/deb-sig/double-entry-generator/pkg/compiler"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/consts"
"github.com/deb-sig/double-entry-generator/pkg/provider"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/gaocegege/double-entry-generator/pkg/version"
"github.com/deb-sig/double-entry-generator/pkg/version"
)

func init() {
Expand Down
6 changes: 3 additions & 3 deletions pkg/compiler/beancount/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"sort"
"text/template"

"github.com/gaocegege/double-entry-generator/pkg/analyser"
"github.com/deb-sig/double-entry-generator/pkg/analyser"

"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// BeanCount is the implementation.
Expand Down
10 changes: 5 additions & 5 deletions pkg/compiler/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package compiler
import (
"fmt"

"github.com/gaocegege/double-entry-generator/pkg/analyser"
"github.com/deb-sig/double-entry-generator/pkg/analyser"

"github.com/gaocegege/double-entry-generator/pkg/compiler/beancount"
"github.com/gaocegege/double-entry-generator/pkg/config"
"github.com/gaocegege/double-entry-generator/pkg/consts"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/compiler/beancount"
"github.com/deb-sig/double-entry-generator/pkg/config"
"github.com/deb-sig/double-entry-generator/pkg/consts"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// Interface is the type for the compiler.
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package config

import (
"github.com/gaocegege/double-entry-generator/pkg/provider/alipay"
"github.com/gaocegege/double-entry-generator/pkg/provider/huobi"
"github.com/gaocegege/double-entry-generator/pkg/provider/wechat"
"github.com/deb-sig/double-entry-generator/pkg/provider/alipay"
"github.com/deb-sig/double-entry-generator/pkg/provider/huobi"
"github.com/deb-sig/double-entry-generator/pkg/provider/wechat"
)

// Config is the global configuration.
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/alipay/alipay.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"golang.org/x/text/encoding/simplifiedchinese"
"golang.org/x/text/transform"

"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// Alipay is the provider for alipay.
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/alipay/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package alipay
import (
"fmt"

"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// convertToIR convert alipay bills to IR.
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/huobi/convert.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package huobi

import "github.com/gaocegege/double-entry-generator/pkg/ir"
import "github.com/deb-sig/double-entry-generator/pkg/ir"

func (h *Huobi) convertToIR() *ir.IR {
i := ir.New()
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/huobi/huobi.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"os"

"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

type Huobi struct {
Expand Down
10 changes: 5 additions & 5 deletions pkg/provider/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ package provider
import (
"fmt"

"github.com/gaocegege/double-entry-generator/pkg/consts"
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/gaocegege/double-entry-generator/pkg/provider/alipay"
"github.com/gaocegege/double-entry-generator/pkg/provider/huobi"
"github.com/gaocegege/double-entry-generator/pkg/provider/wechat"
"github.com/deb-sig/double-entry-generator/pkg/consts"
"github.com/deb-sig/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/provider/alipay"
"github.com/deb-sig/double-entry-generator/pkg/provider/huobi"
"github.com/deb-sig/double-entry-generator/pkg/provider/wechat"
)

// Interface is the interface for the provider.
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/wechat/convert.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package wechat

import (
"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// convertToIR convert wechat bills to IR.
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"os"

"github.com/gaocegege/double-entry-generator/pkg/ir"
"github.com/deb-sig/double-entry-generator/pkg/ir"
)

// Wechat is the provider for Wechat.
Expand Down

0 comments on commit 690e52b

Please sign in to comment.