Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Ability to stdout standalone app url via url:ipa and url:apk cmds #103

Closed
wants to merge 5 commits into from
Closed

Ability to stdout standalone app url via url:ipa and url:apk cmds #103

wants to merge 5 commits into from

Conversation

mglagola
Copy link
Contributor

@mglagola mglagola commented Mar 2, 2018

@fson - Per our discussion to merge some of exptool functionality with exp!

This functionality will allow for commands like:

curl -o app.ipa "$(exp url:ipa)"
curl -o app.apk "$(exp url:apk)"

@mglagola mglagola changed the title added url:ipa and url:apk cmds that stdout standalone app url Ability to stdout standalone app url via url:ipa and url:apk cmds Mar 2, 2018
fp.getOr([], 'jobs')
)(res);
if (url) {
console.log(url);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using console.log because log has a prefix ([exp] [timestamp] <msg>) that will interfere with outside commands like curl.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC you can use log.nested() to print without the prefix.

Copy link
Contributor

@fson fson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good. I added a few minor comments.


program
.command('url:ipa [project-dir]')
.alias('ui')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we use these short aliases in a bunch of commands (I'm not a big user of them myself), but I think exp ui might be confusing. Maybe let's just add url:ipa and url:apk for now and no aliases?

if (url) {
console.log(url);
} else {
throw new Error(`No ${platform} binary file found.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message could tell they can use exp build:${platform} to create one.

fp.getOr([], 'jobs')
)(res);
if (url) {
console.log(url);
Copy link
Contributor

@fson fson Mar 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the log functions to log.

@mglagola
Copy link
Contributor Author

mglagola commented Mar 2, 2018

@fson pushed up those changes

program
.command('url:ipa [project-dir]')
.description('Displays the standalone iOS binary URL you can use to download your app binary')
.allowOffline()
Copy link
Contributor

@fson fson Mar 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new commands probably shouldn't call allowOffline (it enables the --offline flag), because they require an internet connection and being signed in to Expo to work.

@mglagola
Copy link
Contributor Author

mglagola commented Mar 6, 2018

@fson LMK if any other changes are needed

@fson
Copy link
Contributor

fson commented Mar 6, 2018

Everything looks great now. Could you resolve the conflicts in this branch so I can then merge it?

@mglagola
Copy link
Contributor Author

mglagola commented Mar 6, 2018

@fson fixed conflicts!

@fson fson closed this Mar 6, 2018
expbot pushed a commit that referenced this pull request Mar 6, 2018
@fson - Per our discussion to merge some of [exptool](https://github.com/mglagola/exptool) functionality with `exp`!

This functionality will allow for commands like:
```bash
curl -o app.ipa "$(exp url:ipa)"
curl -o app.apk "$(exp url:apk)"
```

Closes #103

fbshipit-source-id: bc7289a
@fson
Copy link
Contributor

fson commented Mar 6, 2018

Thanks!

fson pushed a commit to expo/expo-cli that referenced this pull request Aug 16, 2018
@fson - Per our discussion to merge some of [exptool](https://github.com/mglagola/exptool) functionality with `exp`!

This functionality will allow for commands like:
```bash
curl -o app.ipa "$(exp url:ipa)"
curl -o app.apk "$(exp url:apk)"
```

Closes expo/exp#103
fson pushed a commit to expo/expo-cli that referenced this pull request Aug 23, 2018
@fson - Per our discussion to merge some of [exptool](https://github.com/mglagola/exptool) functionality with `exp`!

This functionality will allow for commands like:
```bash
curl -o app.ipa "$(exp url:ipa)"
curl -o app.apk "$(exp url:apk)"
```

Closes expo/exp#103
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants