feat: add GitVersion struct

This commit is contained in:
Ryooooooga 2022-12-26 23:43:08 +09:00
parent 41222f07ed
commit cd9111837e
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
9 changed files with 144 additions and 84 deletions

View file

@ -9,6 +9,7 @@ import (
type GitCommon struct {
*common.Common
version *GitVersion
cmd oscommands.ICmdObjBuilder
os *oscommands.OSCommand
dotGitDir string
@ -20,6 +21,7 @@ type GitCommon struct {
func NewGitCommon(
cmn *common.Common,
version *GitVersion,
cmd oscommands.ICmdObjBuilder,
osCommand *oscommands.OSCommand,
dotGitDir string,
@ -29,6 +31,7 @@ func NewGitCommon(
) *GitCommon {
return &GitCommon{
Common: cmn,
version: version,
cmd: cmd,
os: osCommand,
dotGitDir: dotGitDir,