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 XSelectScheme command #23

Merged
merged 1 commit into from
Sep 15, 2015
Merged

Add XSelectScheme command #23

merged 1 commit into from
Sep 15, 2015

Conversation

keith
Copy link
Contributor

@keith keith commented Sep 14, 2015

This command allows users to switch the scheme being built. When doing
so we also reset the current SDK in case the scheme targets a different
OS.

I pushed the xcpretty docs down since it made sense to group commands together. If you'd prefer this not change let me know and I can swap them.

I also didn't write much for the help since there's not a lot to this command, let me know if there's anything else I should include.

@@ -64,7 +65,7 @@ function! s:scheme()
return '-scheme '. s:scheme_name()
endfunction

function!s:scheme_name()
function! s:scheme_name()
Copy link
Owner

Choose a reason for hiding this comment

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

lol oops

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😭

@gfontenot
Copy link
Owner

I pushed the xcpretty docs down since it made sense to group commands together.

yep, that seems best.

let me know if there's anything else I should include.

Maybe we should add a small note that if you mistype the scheme, xcodebuild will error? That seems obvious, but who knows.

@@ -72,6 +73,11 @@ function!s:scheme_name()
return s:chosen_scheme
endfunction

function! s:set_scheme(scheme)
Copy link
Owner

Choose a reason for hiding this comment

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

Should we move this up with build and test? I feel like it makes sense to group actions together, but maybe I'm insane?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope that sounds good

@gfontenot
Copy link
Owner

PS I'm shocked and delighted with how simple this ended up being.


@gfontenot
Copy link
Owner

Fixes #2

I'll open another issue to cover autocompletion.

This command allows users to switch the scheme being built. When doing
so we also reset the current SDK in case the scheme targets a different
OS.
@keith
Copy link
Contributor Author

keith commented Sep 15, 2015

Updated for feedback!

@gfontenot
Copy link
Owner

@gfontenot gfontenot merged commit 133542f into gfontenot:master Sep 15, 2015
@gfontenot gfontenot mentioned this pull request Sep 15, 2015
@keith keith deleted the set-scheme branch September 15, 2015 02:44
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.

None yet

2 participants