-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
--path
option and GIT_REMIND_PATHS
environment
- Loading branch information
Showing
6 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package appservice | ||
|
||
import ( | ||
"github.com/suin/git-remind/app/cli/cliglobalopts" | ||
"github.com/suin/git-remind/domain" | ||
"github.com/suin/git-remind/infra" | ||
) | ||
|
||
var GetPathPatterns = domain.NewGetPathPatterns(infra.GitGlobalConfigGetPathPatterns) | ||
var GetPathPatterns = domain.NewGetPathPatterns( | ||
domain.MultipleGetPathPatterns( | ||
cliglobalopts.GetPathPatterns, | ||
infra.GitGlobalConfigGetPathPatterns, | ||
), | ||
) | ||
var GetRepos = domain.NewGetRepos(GetPathPatterns, infra.FilesystemRepos) | ||
var GetRepoStatuses = domain.NewGetRepoStatuses(GetRepos, infra.GetGitStatus) | ||
var NotifyRepoStatues = domain.NewNotifyRepoStatuses(GetRepoStatuses, infra.BeeepRepoStatusNotifier) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cliglobalopts | ||
|
||
import "github.com/suin/git-remind/domain" | ||
|
||
var pathPatterns []string | ||
|
||
func SetPathPatterns(p []string) { | ||
pathPatterns = p | ||
} | ||
|
||
var GetPathPatterns domain.GetPathPatterns = func() ([]string, error) { | ||
return pathPatterns, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters