v0.2.194
CLI: platform as positional argument
perry run and perry publish now take the target platform as a positional argument instead of -- flags:
# Before
perry run --ios
perry publish --macos
# After
perry run ios
perry publish macosPlatform is the primary selector for these commands — positional args are the right fit. perry compile --target is unchanged since the input file is the primary argument there.
Supported platforms
macos · ios · android · linux · windows · web
Examples
perry run # default: host platform
perry run ios # run on iOS device/simulator
perry run ios --simulator <UDID> # specific simulator
perry run web # open in browser
perry publish macos # build & publish for macOS
perry publish ios --license-key X # flags still work as before