Skip to content
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

Add the ability to customize/disable Xcode command #172

Merged
merged 2 commits into from
Sep 29, 2014
Merged

Conversation

gfontenot
Copy link
Member

This adds a --no-open cli flag as well as an xcode_command key to
the liftoffrc.

--no-open will let the user completely disable liftoff's ability to
automatically open Xcode after successfully generating a project

xcode_command lets the user customize the command used to open Xcode.
The contents of this key are executed arbitrarily, so allow the user to
customize their development process by using beta versions of Xcode,
AppCode, Vim, Emacs, etc instead of using the default version of Xcode.
Setting this key to false will disable this behavior completely.

Fixes #166

@@ -42,6 +42,10 @@ def global_options
@options[:configure_git] = configure_git
end

opts.on('--no-open', "Don't open Xcode after generation") do |open_xcode|

Choose a reason for hiding this comment

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

Is the block parameter necessary or could it be left out?

Copy link
Member Author

Choose a reason for hiding this comment

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

Honestly don't know. Let's find out!

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like I don't need it. I'll remove it.

@JoelQ
Copy link

JoelQ commented Sep 29, 2014

LGTM 👍

@tonyd256
Copy link
Contributor

👍

This lets users override the command to open the project. Possible use
cases:

- Open with a beta version of Xcode
- Open with AppCode
- Open the directory with Vim
- Set the config to `false` to disable automatic opening.
This flag will disable the automatic project opening after generation
behavior.
@gfontenot gfontenot merged commit 57296f5 into master Sep 29, 2014
@gfontenot gfontenot deleted the gf-open-command branch September 29, 2014 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make opening Xcode project optional
4 participants