Skip to content

Conversation

dantleech
Copy link
Member

  • Also tidied up messages

- Also tidied up messages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we call this only-children to make it clear? otherwise somebody not familiar with PHPCR could think he can delete a node without the children...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

purge /cms/content
purge children /cms/content
purge children-of /cms/content
purge only-children /cms/content

Hmm. I think I agree with you. Although I prefer the terser syntax. Ideally I would love to have some bash like syntax, for example

purge /cms/content/*
purge /cms/{medias,chronology,content} # delete each of medias, chrology and content

But not sure how much of that would need to be escaped.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i think globs would be expanded by the shell unless you quote them. depends probably on the shell...

purge /cms/content --only-children seems not too bad to me, can you change that and we merge?

dbu added a commit that referenced this pull request Apr 16, 2013
Added support for only removing children
@dbu dbu merged commit 65cce1c into phpcr:master Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants