print better message for excluded folders. Allow user to override exclusions and set themselves

This commit is contained in:
Mark Larsen
2014-05-27 22:23:39 -07:00
parent 5945224a86
commit a4b7a62787
4 changed files with 42 additions and 11 deletions

View File

@@ -6,11 +6,13 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'synx')
Clamp do
parameter "xcodeproj", "Path to the xcodeproj", :attribute_name => :xcodeproj_path
option ["--prune", "-p"], :flag, "remove source files and image resources that are not referenced by the the xcode project", :attribute_name => :prune
option ["--prune", "-p"], :flag, "remove source files and image resources that are not referenced by the the xcode project"
option "--no-default-exclusions", :flag, "doesn't use the default exclusions of /Libraries, /Frameworks, and /Products"
option ["--exclusion", "-e"], "ignore an Xcode group while syncing", :multivalued => true
def execute
project = Synx::Project.open(xcodeproj_path)
project.sync(:prune => prune?)
project.sync(:prune => prune?, :no_default_exclusions => no_default_exclusions?, :group_exclusions => exclusion_list)
end
end