Skip to content

Commit

Permalink
Fix tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Oct 12, 2021
1 parent e528fc4 commit b733ba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion open-default_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

package main

import "os/exec"
import (
"fmt"
)

func openWithDefault(filePath string) error {
// TODO: Add code to open file with default program on linux
return fmt.Errorf("\"open with default application\" not implemented in linux")
}
4 changes: 3 additions & 1 deletion open-default_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

package main

import "os/exec"
import (
"os/exec"
)

func openWithDefault(filePath string) error {
cmd := exec.Command("explorer", filePath)
Expand Down

0 comments on commit b733ba3

Please sign in to comment.