From 5e3238f30ef1eacbe05139b29f7dac99253c520c Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Sun, 26 Feb 2017 13:38:35 -0800 Subject: [PATCH] Add LICENSE and CONTRIBUTING, update README (#2) --- CONTRIBUTING.md | 14 ++++++++++ LICENSE | 13 +++++++++ Makefile | 2 +- README.md | 28 +++++++++++++++---- .../coordinate+extension.swift | 0 {Sources => sources}/coordinate.swift | 0 {Sources => sources}/main.swift | 0 {Sources => sources}/notification.swift | 0 {Sources => sources}/query.swift | 0 {Sources => sources}/result.swift | 0 {Sources => sources}/stderr.swift | 0 11 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE rename {Sources => sources}/coordinate+extension.swift (100%) rename {Sources => sources}/coordinate.swift (100%) rename {Sources => sources}/main.swift (100%) rename {Sources => sources}/notification.swift (100%) rename {Sources => sources}/query.swift (100%) rename {Sources => sources}/result.swift (100%) rename {Sources => sources}/stderr.swift (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..c4ba079 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,14 @@ +## Code of conduct + +This project is governed by [Lyft's code of +conduct](https://github.com/lyft/code-of-conduct). All contributors and +participants agree to abide by its terms. + +## Contributing + +1. Fork the repo. +1. Make your changes +1. Add an entry to the `CHANGELOG.md` +1. Sign our [Contributor License Agreement + (CLA)](https://oss.lyft.com/cla) +1. Push to your fork and submit a pull request! diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2353e81 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2017 Lyft Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/Makefile b/Makefile index c78bd7f..22685f6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ EXECUTABLE = set-simulator-location ARCHIVE = $(EXECUTABLE).tar.gz PREFIX ?= /usr/local/bin -SRCS = $(wildcard Sources/*.swift) +SRCS = $(wildcard sources/*.swift) $(EXECUTABLE): $(SRCS) swiftc \ diff --git a/README.md b/README.md index 84d3d35..a96cea1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,24 @@ -# ios-simulator-location +# set-simulator-location -This is a small tool to allow you to set the location on the iOS -simulator from the command line. It is intended for use with automation -tests or in other places where we can't just change the location from -the menu. +This is a simple CLI for easily setting the location of the currently +running iOS Simulator. + +## Usage + +Set a specific latitude and longitude: + +```sh +$ set-simulator-location -c 37.7765 -122.3918 +``` + +Or using place search: + +```sh +$ set-simulator-location -q Lyft HQ San Francisco +``` + +## Installation + +```sh +$ brew install lyft/formulae/set-simulator-location +``` diff --git a/Sources/coordinate+extension.swift b/sources/coordinate+extension.swift similarity index 100% rename from Sources/coordinate+extension.swift rename to sources/coordinate+extension.swift diff --git a/Sources/coordinate.swift b/sources/coordinate.swift similarity index 100% rename from Sources/coordinate.swift rename to sources/coordinate.swift diff --git a/Sources/main.swift b/sources/main.swift similarity index 100% rename from Sources/main.swift rename to sources/main.swift diff --git a/Sources/notification.swift b/sources/notification.swift similarity index 100% rename from Sources/notification.swift rename to sources/notification.swift diff --git a/Sources/query.swift b/sources/query.swift similarity index 100% rename from Sources/query.swift rename to sources/query.swift diff --git a/Sources/result.swift b/sources/result.swift similarity index 100% rename from Sources/result.swift rename to sources/result.swift diff --git a/Sources/stderr.swift b/sources/stderr.swift similarity index 100% rename from Sources/stderr.swift rename to sources/stderr.swift