File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed
Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 22require 'xcodeproj'
33
44module Pbind
5- require 'cocoapods/user_interface'
65require_relative 'pbind/command'
76end
Original file line number Diff line number Diff line change 11require 'colored'
22require 'claide'
33
4+ require 'cocoapods/config'
5+ require 'cocoapods/user_interface'
6+
47module Pbind
58class Command < CLAide ::Command
69
@@ -13,17 +16,18 @@ class Command < CLAide::Command
1316self . description = 'Pbind, the Pbind XcodeProject Helper.'
1417self . plugin_prefixes = %w( claide pbind )
1518
19+ UI = Pod ::UI
20+
1621def self . report_error ( exception )
1722case exception
1823when Interrupt
1924puts ''
2025puts '[!] Cancelled' . red
21- # Config.instance.verbose? ? raise : exit(1)
2226when SystemExit
2327raise
2428else
2529# if ENV['PBIND_ENV'] != 'development'
26- # puts UI::ErrorReport.report(exception)
30+ # puts UI::ErrorReport.report(exception)
2731# UI::ErrorReport.search_for_exceptions(exception)
2832# exit 1
2933# else
@@ -44,6 +48,12 @@ def initialize(argv)
4448@project_path = argv . option ( 'project' )
4549end
4650
51+ def run
52+ if !@changed
53+ UI . notice 'All are UP-TO-DATE.'
54+ end
55+ end
56+
4757def verify_project_exists
4858if @project_path == nil
4959projects = Dir . glob ( "*.xcodeproj" )
Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ def run
3535
3636add_mock_json
3737
38- if !@changed
39- puts 'All are UP-TO-DATE.'
40- end
38+ super
4139end
4240
4341private
Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ def run
3939add_plist_entries
4040add_group_references
4141
42- if !@changed
43- puts 'All are UP-TO-DATE.'
44- end
42+ super
4543end
4644
4745private
You can’t perform that action at this time.
0 commit comments