diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-03-14 14:01:42 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-03-15 18:03:35 +0100 |
commit | 83c0f18e1de04b3bad9c424084e738e911c47336 (patch) | |
tree | 22d69b9450693bb153e58dbe8b7cd6feb3f8e1e0 /go/internal/command/fallback | |
parent | 53511f3655a5eed9976164fbd88d14df3490000c (diff) | |
download | gitlab-shell-83c0f18e1de04b3bad9c424084e738e911c47336.tar.gz |
Wrap Stderr & Stdout in a reporter struct
The reporter struct can be used for passing around and reporting to
the io.Writer of choice.
Diffstat (limited to 'go/internal/command/fallback')
-rw-r--r-- | go/internal/command/fallback/fallback.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/internal/command/fallback/fallback.go b/go/internal/command/fallback/fallback.go index a136657..a2c73ed 100644 --- a/go/internal/command/fallback/fallback.go +++ b/go/internal/command/fallback/fallback.go @@ -4,6 +4,8 @@ import ( "os" "path/filepath" "syscall" + + "gitlab.com/gitlab-org/gitlab-shell/go/internal/command/reporting" ) type Command struct{} @@ -12,7 +14,7 @@ var ( binDir = filepath.Dir(os.Args[0]) ) -func (c *Command) Execute() error { +func (c *Command) Execute(_ *reporting.Reporter) error { rubyCmd := filepath.Join(binDir, "gitlab-shell-ruby") execErr := syscall.Exec(rubyCmd, os.Args, os.Environ()) return execErr |