Add titles
command to show all IDs and titles
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
12a0353a4c
commit
9019f4579d
10 changed files with 150 additions and 246 deletions
12
internal/lib/git.go
Normal file
12
internal/lib/git.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package lib
|
||||
|
||||
import "os/exec"
|
||||
|
||||
func execGitCommand(dir string, parts ...string) (string, error) {
|
||||
args := append([]string{"-C", dir}, parts...)
|
||||
command := exec.Command("git", args...)
|
||||
|
||||
output, err := command.CombinedOutput()
|
||||
|
||||
return string(output), err
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue