Allow customizing companion commands
This commit is contained in:
@@ -12,9 +12,11 @@ import (
|
||||
const defaultPort = 17680
|
||||
|
||||
type config struct {
|
||||
WikiRoot string `json:"wikiRoot"`
|
||||
AllowedOrigins []string `json:"allowedOrigins"`
|
||||
Port int `json:"port,omitempty"`
|
||||
WikiRoot string `json:"wikiRoot"`
|
||||
AllowedOrigins []string `json:"allowedOrigins"`
|
||||
Port int `json:"port,omitempty"`
|
||||
OpenFileCommand string `json:"openFileCommand,omitempty"`
|
||||
OpenFolderCommand string `json:"openFolderCommand,omitempty"`
|
||||
}
|
||||
|
||||
// configPath returns the platform-conventional config path.
|
||||
|
||||
Reference in New Issue
Block a user