mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
da98ebdcdf
* remove old code * remove even more * skip flaky test
32 lines
590 B
Go
32 lines
590 B
Go
package plugins
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
"strings"
|
|
)
|
|
|
|
func ComposePluginStartCommand(executable string) string {
|
|
os := strings.ToLower(runtime.GOOS)
|
|
arch := runtime.GOARCH
|
|
extension := ""
|
|
|
|
if os == "windows" {
|
|
extension = ".exe"
|
|
}
|
|
|
|
return fmt.Sprintf("%s_%s_%s%s", executable, os, strings.ToLower(arch), extension)
|
|
}
|
|
|
|
func ComposeRendererStartCommand() string {
|
|
os := strings.ToLower(runtime.GOOS)
|
|
arch := runtime.GOARCH
|
|
extension := ""
|
|
|
|
if os == "windows" {
|
|
extension = ".exe"
|
|
}
|
|
|
|
return fmt.Sprintf("%s_%s_%s%s", "plugin_start", os, strings.ToLower(arch), extension)
|
|
}
|