Skip to content

Commit

Permalink
feat: rename mggitverifynodiff to mggit
Browse files Browse the repository at this point in the history
Shorter name with less repetition.
  • Loading branch information
odsod committed Jan 21, 2022
1 parent 22293d4 commit 555fe45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .mage/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"go.einride.tech/mage-tools/mgmake"
"go.einride.tech/mage-tools/mgpath"
"go.einride.tech/mage-tools/tools/mgconvco"
"go.einride.tech/mage-tools/tools/mggitverifynodiff"
"go.einride.tech/mage-tools/tools/mggit"
"go.einride.tech/mage-tools/tools/mggo"
"go.einride.tech/mage-tools/tools/mggolangcilint"
"go.einride.tech/mage-tools/tools/mggoreview"
Expand Down Expand Up @@ -80,5 +80,5 @@ func ConvcoCheck(ctx context.Context) error {

func GitVerifyNoDiff() error {
mglog.Logger("git-verify-no-diff").Info("verifying that git has no diff...")
return mggitverifynodiff.GitVerifyNoDiff()
return mggit.VerifyNoDiff()
}
4 changes: 2 additions & 2 deletions example/.mage/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"go.einride.tech/mage-tools/mgmake"
"go.einride.tech/mage-tools/mgpath"
"go.einride.tech/mage-tools/tools/mgconvco"
"go.einride.tech/mage-tools/tools/mggitverifynodiff"
"go.einride.tech/mage-tools/tools/mggit"
"go.einride.tech/mage-tools/tools/mggo"
"go.einride.tech/mage-tools/tools/mggolangcilint"
"go.einride.tech/mage-tools/tools/mggoreview"
Expand Down Expand Up @@ -79,5 +79,5 @@ func ConvcoCheck(ctx context.Context) error {

func GitVerifyNoDiff() error {
mglog.Logger("git-verify-no-diff").Info("verifying that git has no diff...")
return mggitverifynodiff.GitVerifyNoDiff()
return mggit.VerifyNoDiff()
}
4 changes: 2 additions & 2 deletions tools/mggitverifynodiff/tools.go → tools/mggit/tools.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mggitverifynodiff
package mggit

import (
"bytes"
Expand All @@ -7,7 +7,7 @@ import (
"go.einride.tech/mage-tools/mgtool"
)

func GitVerifyNoDiff() error {
func VerifyNoDiff() error {
cmd := mgtool.Command("git", "status", "--porcelain")
var b bytes.Buffer
cmd.Stdout = &b
Expand Down

0 comments on commit 555fe45

Please sign in to comment.