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

Fix running init #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jandev
Copy link

@Jandev Jandev commented Jun 19, 2020

If you run adr-cli init on a folder which doesn't have the docs\adr folders, the application crashes.
That's because a file is being writing in this folder, but doesn't exist.

Added a small check to see if the folder exists, if not it will create it.

Updated the project to .NET Core 3.1 as I don't have .NET Core 1.1 installed (anymore) on my machine. Also did the same for #3 in order to create a self-contained application.

Also did some small cleaning up, like removing unused usings, using a new language feature and extracted 2 methods which write the files.

To get the application debuggable
Also Extracted Method for writing a file
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

1 participant