-
Notifications
You must be signed in to change notification settings - Fork 209
Description
The current method of outputting the data into an actual .gitignore file requires a redirect to be manually specified in bash. As in, the current method is directly coupled to the bash prompt.
joe java > .gitignore
How about adding in a parameter using an internal dictionary (the data type) containing all the available options and another parameter to specify the filename (since I saw that you're supporting other versions of .gitignore)?
Here's what I'm thinking:
joe java .gitignore
or
joe java
In both cases, it would increase code portability and allow potential scripting based on joe (eg adding it into a build script by calling the necessary .gitignore generator in joe automatically). All of this should still allow easy execution on the command line as-is.
In other words, can the actual output be made a part of the script instead of being dependent on a bash redirect?