venmo / synx

A command-line tool that reorganizes your Xcode project folder to match your Xcode groups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: exclude files

edenworky opened this issue · comments

This came up while discussing an actually useful use case for Xcode's groups: grouping tests and source files together. Have MYFoo.h, MYFoo.m, and MYFooTests.m in the same group one after the other. Without file exclusion, Synx would (reasonably) move all the tests into the app's directory, and Cocoapods would include the test files in the pod.

I imagine something like this, which would simply not move the test files anywhere:
synx --exclude-files **/*Tests.m

This is also really useful for a file generated by something like https://github.com/mac-cain13/R.swift