Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add args for output instead of bash redirection #21

@dabockster

Description

@dabockster

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions