XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Group ordering

Open augard opened this issue 5 years ago • 1 comments

How to use pattern parameter in groupOrder? I tried few things and can't get it work on sub folders.

I have this structure: Project/API Project/Assets Project/Features Project/Features/Something Project/Features/Something/Controllers Project/Features/Something/Cells Project/Features/Something/Views Project/Features/Something/Services Project/Features/Another thing/... Project/Extensions

I want to set pattern for feature, i tried something like "'^.*Feature/$', thanks.

augard avatar Nov 20 '20 16:11 augard

Tried this?

  groupOrdering:
    - pattern: 'Project'
      order: [API, Assets, Features, Extensions]

Note - Its important that order not be prefixed with a hyphen.

AnandKumar9 avatar Feb 21 '22 18:02 AnandKumar9