|
|
@ -25,8 +25,8 @@ void someFunction(void) {
|
|
|
|
if (HostOS.os() == kaleidoscope::hostos::LINUX) {
|
|
|
|
if (HostOS.os() == kaleidoscope::hostos::LINUX) {
|
|
|
|
// do something linux-y
|
|
|
|
// do something linux-y
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (HostOS.os() == kaleidoscope::hostos::OSX) {
|
|
|
|
if (HostOS.os() == kaleidoscope::hostos::MACOS) {
|
|
|
|
// do something OSX-y
|
|
|
|
// do something macOS-y
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -55,10 +55,13 @@ The extension provides the following methods on the `HostOS` singleton:
|
|
|
|
The OS type (i.e. the return type of `.os()` and the arguments to `.os(type)`) will be one of the following:
|
|
|
|
The OS type (i.e. the return type of `.os()` and the arguments to `.os(type)`) will be one of the following:
|
|
|
|
|
|
|
|
|
|
|
|
- `kaleidoscope::hostos::LINUX`
|
|
|
|
- `kaleidoscope::hostos::LINUX`
|
|
|
|
- `kaleidoscope::hostos::OSX`
|
|
|
|
- `kaleidoscope::hostos::MACOS`
|
|
|
|
- `kaleidoscope::hostos::WINDOWS`
|
|
|
|
- `kaleidoscope::hostos::WINDOWS`
|
|
|
|
- `kaleidoscope::hostos::OTHER`
|
|
|
|
- `kaleidoscope::hostos::OTHER`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For compability reasons, `kaleidoscope::hostos::OSX` is an alias to
|
|
|
|
|
|
|
|
`kaleidoscope::hostos::MACOS`.
|
|
|
|
|
|
|
|
|
|
|
|
## Focus commands
|
|
|
|
## Focus commands
|
|
|
|
|
|
|
|
|
|
|
|
The plugin provides the `FocusHostOSCommand` object, which, when enabled,
|
|
|
|
The plugin provides the `FocusHostOSCommand` object, which, when enabled,
|
|
|
|