add daemon command to enumerate supported platforms (#33472)

This commit is contained in:
Jonah Williams
2019-05-30 10:14:23 -07:00
committed by GitHub
parent 2cb5b24b02
commit f38ee15286
2 changed files with 65 additions and 0 deletions

View File

@@ -60,6 +60,17 @@ The `version()` command responds with a String with the protocol version.
The `shutdown()` command will terminate the flutter daemon. It is not necessary to call this before shutting down the daemon; it is perfectly acceptable to just kill the daemon process.
### daemon.getSupportedPlatforms
The `getSupportedPlatforms()` command will enumerate all platforms supported by the project located at the provided `projectRoot`. It returns a Map with the key 'platforms' containing a List of strings which describe the set of all possibly supported platforms. Possible values include:
- android
- ios
- linux #experimental
- macos #experimental
- windows #experimental
- fuchsia #experimental
- web #experimental
#### Events
#### daemon.connected