lib/haveapi/go_client/generator.rb in haveapi-go-client-0.15.1 vs lib/haveapi/go_client/generator.rb in haveapi-go-client-0.16.0
- old
+ new
@@ -57,9 +57,15 @@
api.resources.each { |r| r.generate(self) }
api.auth_methods.each { |v| v.generate(self) }
end
+ def go_fmt
+ unless system('go', 'fmt', chdir: dst)
+ fail "go fmt failed"
+ end
+ end
+
protected
attr_reader :api
end
end