diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 151d0f1..57fe10d 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -23,7 +23,6 @@ else # git diff --diff-filter=d --cached --name-only | grep -E 'Sources.*.(swift)$' | xargs -I{} swift-format -m lint --configuration .swift-format {} echo "Auto-Formatting..." git diff --diff-filter=d --cached --name-only | grep -E 'Sources.*.(swift)$' | xargs -I{} swift-format -m format -r -i {} - echo "You might need to re-commit to commit the updated formmated code" fi if ! [ -x "$(command -v generate-enum-properties)" ]; then diff --git a/README.md b/README.md index 3334bda..3e37563 100644 --- a/README.md +++ b/README.md @@ -20,25 +20,40 @@ swift run cli iPhone --share-to-envman You can use the cli to find the platform you need by passing the device name or juste the device family you can optionnaly set the os version you are looking for. ```shell -./cli iphone +swift run cli iphone iOS Simulator,name=iPhone 11 Pro Max,OS=13.3 ``` ```shell -./cli "iPad Air (3rd generation)" +swift run cli "iPad Air (3rd generation)" iOS Simulator,name=iPad Air (3rd generation),OS=13.3 ``` ```shell -./cli watch +swift run cli watch watchOS Simulator,name=Apple Watch Series 5 - 44mm,OS=6.1.1 ``` ```shell -./cli tv -v 13.3 +swift run cli tv -v 13.3 tvOS Simulator,name=Apple TV 4K (at 1080p),OS=13.3 ``` +`--help` +``` +USAGE: platform-lookup-cli [--runtime-version ] [--show-all] [--share-to-envman] [--version] [--print-with-platform] + +ARGUMENTS: + Platform you are looking for. (ex. iPhone) +OPTIONS: + -r, --runtime-version + Runtime version you are targeting. (ex. 13.2) + --show-all Show all available options. + --share-to-envman Share info to Bitrise envman. + --version Print tool version. + --print-with-platform Print in the other form.(ex: platform="iOS Simulator,name=iPhone 11 Pro Max,OS=13.4") + -h, --help Show help information. +``` # PlatformLookup 🔎 This package help to find/filter/sort all devices and runtimes available in xcrun simctl.