1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

switch GetOpenCommand scope to private

This commit is contained in:
Anthony HAMON
2018-08-22 22:30:47 +02:00
parent 38f11f1f4a
commit 0b07cd19f7

View File

@ -76,8 +76,8 @@ func sanitisedCommandOutput(output []byte, err error) (string, error) {
return outputString, nil
}
// GetOpenCommand get open command
func (c *OSCommand) GetOpenCommand() (string, string, error) {
// getOpenCommand get open command
func (c *OSCommand) getOpenCommand() (string, string, error) {
//NextStep open equivalents: xdg-open (linux), cygstart (cygwin), open (OSX)
trailMap := map[string]string{
"xdg-open": " &>/dev/null &",
@ -109,7 +109,7 @@ func (c *OSCommand) SublimeOpenFile(filename string) (*exec.Cmd, error) {
// OpenFile opens a file with the given
func (c *OSCommand) OpenFile(filename string) error {
cmdName, cmdTrail, err := c.GetOpenCommand()
cmdName, cmdTrail, err := c.getOpenCommand()
if err != nil {
return err
}