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

Create exercism directory on configuration #133

Merged
merged 1 commit into from
Oct 12, 2014

Conversation

Tonkpils
Copy link
Contributor

I wasn't really sure where to place the logic to create the directory. Initially, I had planned to put it under configure() but that gets called when reading the contents of the file. It also seems like errors coming from configure() don't get checked but this is an error we'd generally want to display.

I decided to go for creating an exported function of Config and calling it before writing the file so that the file does not have a directory that could not be created. Let me know if anything jumps out.

Fixes #122

@kytrinyx
Copy link
Member

I'd like to keep all the writes isolated to the handlers. Let's add the code that writes the directory directly to the configure handler. I wouldn't worry about the login handler, I'm just going to delete it soon.

@Tonkpils
Copy link
Contributor Author

OK, just so I'm clear, you want me to remove the function that writes the directory out of the config package and write that code in the handler itself. I'll fix that

@kytrinyx
Copy link
Member

Yepp, thanks!

kytrinyx added a commit that referenced this pull request Oct 12, 2014
Create exercism directory on configuration
@kytrinyx kytrinyx merged commit 79cd3dc into exercism:master Oct 12, 2014
@Tonkpils Tonkpils deleted the create-directory branch October 12, 2014 14:34
lcowell pushed a commit to lcowell/cli that referenced this pull request Jan 25, 2015
Create exercism directory on configuration
This pull request was closed.
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.

Create the exercism directory up front
2 participants