mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 00:09:37 +08:00
refactor: move hrp/ to root folder
This commit is contained in:
11
internal/wiki/main.go
Normal file
11
internal/wiki/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package wiki
|
||||
|
||||
import (
|
||||
"github.com/httprunner/funplugin/myexec"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func OpenWiki() error {
|
||||
log.Info().Msgf("%s https://httprunner.com", openCmd)
|
||||
return myexec.RunCommand(openCmd, "https://httprunner.com")
|
||||
}
|
||||
3
internal/wiki/open_darwin.go
Normal file
3
internal/wiki/open_darwin.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package wiki
|
||||
|
||||
const openCmd = "open"
|
||||
3
internal/wiki/open_linux.go
Normal file
3
internal/wiki/open_linux.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package wiki
|
||||
|
||||
const openCmd = "xdg-open"
|
||||
3
internal/wiki/open_windows.go
Normal file
3
internal/wiki/open_windows.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package wiki
|
||||
|
||||
const openCmd = "explorer"
|
||||
Reference in New Issue
Block a user