Skip to content
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

Option to ignore a data type #26

Closed
adamwintle opened this issue Oct 25, 2014 · 7 comments
Closed

Option to ignore a data type #26

adamwintle opened this issue Oct 25, 2014 · 7 comments

Comments

@adamwintle
Copy link

When running an extract it could be useful to have a flag ignore or not extract some of the data for that particular extraction. e.g. gitify extract -content

Could later be expanded/more advanced e.g. gitify extract -contexts contextname which would then ignore that context, plus its content; or gitify extract -categories categoryname, and all elements inside that category are not extracted

@Mark-H
Copy link
Member

Mark-H commented Dec 19, 2014

I'd like to reverse this, by adding an option on the data type you want to extract/build, like Gitify extract content or Gitify build templates, in which it only does that one.

@isaacniebeling
Copy link
Contributor

Why not both? Gitify extract -snippets does everything except snippets; Gitify extract snippets does only snippets.

@Mark-H
Copy link
Member

Mark-H commented Feb 4, 2015

Things like -vare shorthand for CLI options/flags, so that could get confusing/messy in the code. Also I think it's more likely you've just changed one thing and want to extract that, compared to wanting to extract everything except one thing.

@isaacniebeling
Copy link
Contributor

Things like -vare shorthand for CLI options/flags

True.

Also I think it's more likely you've just changed one thing and want to extract that

That may be true, but I can think of a lot of situations where you might want a couple of things but not others; maybe --exclude snippets would be better

@alroniks
Copy link
Collaborator

alroniks commented Feb 5, 2015

I suggest this variant:

gitify build --exclude snippets chunks template
gitify build --only snippets chunks

Also for extracting:

gitify extract --exclude snippets chunks template
gitify extract --only snippets chunks

@alroniks
Copy link
Collaborator

alroniks commented Feb 5, 2015

😢 Cymfony Console not allow syntax --only something something etc. We need use --only="snippets,chunks"

@Mark-H
Copy link
Member

Mark-H commented Apr 5, 2015

Gitify extract templates chunks snippets works as of 0.8 (or current master), as does Gitify build templates chunks snippets. I've opened #79 to track the feature of excluding certain data so this one can be closed :D

@Mark-H Mark-H closed this as completed Apr 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants