`git ls-files`

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-05 19:01:50 -06:00
parent abb1f0ea21
commit 309cf80e16
1 changed files with 10 additions and 0 deletions

View File

@ -222,6 +222,16 @@ func (rs *RepoStatus) CheckPrimativeGoMod() bool {
return true
}
func (rs *RepoStatus) GitLsFiles() (bool, string) {
err, output := rs.RunCmd([]string{"git", "ls-files"})
if err != nil {
log.Warn("git ls-files failed err =", err)
log.Warn("git ls-files failed output =", output)
return false, output
}
return true, output
}
// readGoMod reads and parses the go.sum file (TODO: do the go.mod file)
func (rs *RepoStatus) ReadGoMod() bool {
if rs.CheckPrimativeGoMod() {