add install commands
This commit is contained in:
25
internal/installer/installer.go
Normal file
25
internal/installer/installer.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package installer
|
||||
|
||||
import "runtime"
|
||||
|
||||
const ServiceName = "luxtools-client"
|
||||
|
||||
type InstallOptions struct {
|
||||
Listen string
|
||||
Allow []string
|
||||
DryRun bool
|
||||
}
|
||||
|
||||
type UninstallOptions struct {
|
||||
KeepConfig bool
|
||||
DryRun bool
|
||||
}
|
||||
|
||||
func Supported() bool {
|
||||
switch runtime.GOOS {
|
||||
case "linux", "windows":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user