Skip to content

Make run-ios --device example copy-pastable #13145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Mar 25, 2017

This changes the single quotes to double quotes so this command can be copy-pasted.

Motivation (required)

If a user copy pastes the run-on-device example in bash they will be presented with a confusing prompt because bash expects another terminating single quote.

~ben (master *) ~/code/transit: react-native run-ios --device 'Max's iPhone'
>
>

It seems minor but this could be just confusing enough to frustrate a beginner or someone not familiar with bash.

Test Plan (required)

This can be tested by running:

react-native run-ios --help

and verifying that the "run on device" example is changed:

- react-native run-ios --device 'Max's iPhone'
+ react-native run-ios --device "Max's iPhone"

This changes the single quotes to double quotes so this command can
easily be copy-pasted.

This can be tested by running:

react-native run-ios --help

and verifying that the "run on device" example is changed:

- react-native run-ios --device 'Max's iPhone'
+ react-native run-ios --device "Max's iPhone"
@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Mar 25, 2017
@ide
Copy link
Contributor

ide commented Mar 25, 2017

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

@ide has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hramos
Copy link
Contributor

hramos commented Mar 29, 2017

This import got stuck on an unrelated test failure. Kicking it off again.

thotegowda pushed a commit to thotegowda/react-native that referenced this pull request May 7, 2017
Summary:
This changes the single quotes to double quotes so this command can be copy-pasted.

If a user copy pastes the run-on-device example in bash they will be presented with a confusing prompt because bash expects another terminating single quote.

```
~ben (master *) ~/code/transit: react-native run-ios --device 'Max's iPhone'
>
>
```

It seems minor but this could be just confusing enough to frustrate a beginner or someone not familiar with bash.

This can be tested by running:

```
react-native run-ios --help
```

and verifying that the "run on device" example is changed:

```diff
- react-native run-ios --device 'Max's iPhone'
+ react-native run-ios --device "Max's iPhone"
```
Closes facebook#13145

Differential Revision: D4776305

Pulled By: hramos

fbshipit-source-id: 9500551bfc106cd1687468f7ecc4c91089e1f703
grabbou pushed a commit to react-native-community/cli that referenced this pull request Sep 26, 2018
Summary:
This changes the single quotes to double quotes so this command can be copy-pasted.

If a user copy pastes the run-on-device example in bash they will be presented with a confusing prompt because bash expects another terminating single quote.

```
~ben (master *) ~/code/transit: react-native run-ios --device 'Max's iPhone'
>
>
```

It seems minor but this could be just confusing enough to frustrate a beginner or someone not familiar with bash.

This can be tested by running:

```
react-native run-ios --help
```

and verifying that the "run on device" example is changed:

```diff
- react-native run-ios --device 'Max's iPhone'
+ react-native run-ios --device "Max's iPhone"
```
Closes facebook/react-native#13145

Differential Revision: D4776305

Pulled By: hramos

fbshipit-source-id: 9500551bfc106cd1687468f7ecc4c91089e1f703
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants