diff options
author | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-22 22:30:47 +0200 |
---|---|---|
committer | Anthony HAMON <anthony.hamon@iadvize.com> | 2018-08-26 01:58:20 +0200 |
commit | 0b07cd19f7efd14ae4d73ad00d611932402d50ca (patch) | |
tree | 01aefbed9aae6d1958047a469805263f8e048387 | |
parent | 38f11f1f4a9df758a7ff030247a171711dca2339 (diff) |
switch GetOpenCommand scope to private
-rw-r--r-- | pkg/commands/os.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 095ad7b0a..556c3bc06 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -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 } |