lolcatbois / ignore-it

A tool written in ruby which helps in fetching and creating .gitignore files. Currently .gitignore files will be fetched from https://gitignore.io or from local user-made templates.
MIT License
1 stars 0 forks source link

Add console flag (-r) to create the .gitignore file recursively (e.g. **/bin instead of /bin) #8

Open NINNiT opened 3 years ago

NINNiT commented 3 years ago

e.g:

/bin -> **/bin

JoeAkaSepp commented 3 years ago

Hi @XMasterNinni and @Zerebratox,

I think we have to discuss this for the option parser too.

Options for a value based parameter of --r (these are just suggestions that need to be discussed): 1st Method: ignore-it -a csharp (vscode --r) (fsharp --r) 2nd Method: ignore-it -a csharp (--r vscode) (--r fsharp)

Options for a global parameter of --r (other suggestions): 3rd Method: ignore-it -a csharp vscode fsharp --r && ignore-it -a nodejs sass

Where the left side of && is the method to add e.g. csharp, vscode and fsharp recursive where on the other side nodejs and sass will be added normally.

Best regards Joe

NINNiT commented 3 years ago

@JoeAkaSepp The parser has been completely rewritten

JoeAkaSepp commented 3 years ago

Having the new parser, a global flag --recursive was created and can be used now in this branch.