-
Notifications
You must be signed in to change notification settings - Fork 6
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
85 read from stdin #86
Conversation
LGTM - now you just need to rebase and resolve the conflict and we can merge this fella 🥳 |
Still not properly rebased - GH still showing conflicts :-( |
with open(self.project_file) as fp: | ||
return json.load(fp) | ||
except json.JSONDecodeError: | ||
raise FlictException(ReturnCodes.RET_INVALID_PROJECT, "File \"" + file_name + "\" does not contain valid JSON data") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'File "{file_name}" does not contain valid JSON data'
except json.JSONDecodeError: | ||
raise FlictException(ReturnCodes.RET_INVALID_PROJECT, "File \"" + file_name + "\" does not contain valid JSON data") | ||
except (FileNotFoundError, IsADirectoryError): | ||
raise FlictException(ReturnCodes.RET_FILE_NOT_FOUND, "File \"" + file_name + "\" could not be found or is a directory") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'File "{file_name}" could not be found or is a directory'
I took the liberty to fix this branch. See https://github.com/vinland-technology/flict/tree/85-read-from-stdin-fixed and feel free to take this as a replacement. We could also just create a new merge request instead. EDIT: There still seems to be an issue:
|
d520282
to
c1f783c
Compare
It seems to work :) All tests pass. Have also tried some manual testing. |
Closes #85
Adding - to mean stdin we can use flict in pipes, like this