Skip to content

Commit

Permalink
Merge pull request #122 from masutaka/library-use-case
Browse files Browse the repository at this point in the history
ライブラリとしてのユースケースに対応する
  • Loading branch information
masutaka authored Nov 6, 2023
2 parents 972d70e + 32b07e8 commit 9fc7181
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dist: cross-build
.PHONY: cross-build
cross-build: deps-cross-build
$(RM) -r pkg/*
gox -osarch="darwin/amd64 darwin/arm64 linux/amd64 windows/amd64" -output "pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
gox -osarch="darwin/amd64 darwin/arm64 linux/amd64 windows/amd64" -output "pkg/{{.OS}}_{{.Arch}}/$(NAME)"

.PHONY: deps-cross-build
deps-cross-build: deps statik/statik.go gox
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/open_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
"github.com/spf13/cobra"
)

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

"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
"github.com/spf13/cobra"
)

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

"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
"github.com/spf13/cobra"
)

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/masutaka/github-nippou
module github.com/masutaka/github-nippou/v4

go 1.21

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

"github.com/google/go-github/github"
"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
)

func TestFormatAll(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"

// Import ./config/*
_ "github.com/masutaka/github-nippou/statik"
_ "github.com/masutaka/github-nippou/v4/statik"

"github.com/google/go-github/github"
"github.com/rakyll/statik/fs"
Expand Down
2 changes: 1 addition & 1 deletion lib/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/masutaka/github-nippou/lib"
"github.com/masutaka/github-nippou/v4/lib"
)

func TestInit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"os"

"github.com/masutaka/github-nippou/cmd"
"github.com/masutaka/github-nippou/v4/cmd"
)

func main() {
Expand Down

0 comments on commit 9fc7181

Please sign in to comment.