mirror of
https://github.com/zhigang1992/synx.git
synced 2026-04-30 13:42:15 +08:00
print better message for excluded folders. Allow user to override exclusions and set themselves
This commit is contained in:
6
bin/synx
6
bin/synx
@@ -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
|
||||
Reference in New Issue
Block a user