Write to gitignore#24
Write to gitignore#24lorepozo wants to merge 1 commit intokaran:masterfrom lorepozo:lukedmor/write-to-gitignore
Conversation
|
I'm very skeptical about merging this - we want to keep the API extremely simple, and adding more args is not pushing us in that direction. |
|
I think @lukedmor 's idea isn't so bad. Currently if we write If we use commands like However abandoning the existing behavior might be too much. If people like the simplicity of the API, then we should stick to that and just introduce something more advanced and less error-prone for people who like that. |
|
Updated the PR for the latest merges |
|
Why not have save be default behaviour for the case where |
This PR implements issue #21, adding args for output instead of requiring bash redirection (note that you can still just use bash redirect).
joe java > .gitignore==
joe java --savejoe java >> .gitignore==
joe java --appendjoe java > /some/path/to/.gitignore==
joe java --save -o /some/path/to/.gitignore-aand-scan be used instead of--appendand--save, respectively.Includes commit from my styled PR #23 for ease of merge conflicts.