Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Print error when selected profile is not configured #13

Merged
merged 4 commits into from Aug 29, 2018

Conversation

randallreedjr
Copy link
Owner

@randallreedjr randallreedjr commented Aug 21, 2018

Fixes #13
Print basic error message if running with invalid args
Also display error message if running git switch profile -l

unless valid_profile
puts "Profile '#{profile}' not found!"
return
end
Copy link
Owner Author

Choose a reason for hiding this comment

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

This structure feels a bit awkward to me

@@ -69,6 +73,10 @@ def print_list
puts config.keys
end

def valid_profile
Copy link
Owner Author

Choose a reason for hiding this comment

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

should be valid_profile?

@randallreedjr randallreedjr changed the title Prints error when selected profile is not configured Print error when selected profile is not configured Aug 29, 2018
@randallreedjr randallreedjr merged commit 37a5959 into master Aug 29, 2018
@randallreedjr randallreedjr deleted the bug/missing_profile branch August 29, 2018 11:58
@randallreedjr randallreedjr mentioned this pull request Aug 31, 2018
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.

None yet

1 participant