slack-ruby / slack-ruby-client

A Ruby and command-line client for the Slack Web, Real Time Messaging and Event APIs.
MIT License
1.21k stars 214 forks source link

Incompatibility between Faraday >= 2.7.0 and bin/slack script including GLI::App at the top level #433

Closed blowfishpro closed 1 year ago

blowfishpro commented 1 year ago

Steps to Reproduce

Observed behavior You get an error message: error: wrong number of arguments (given 1, expected 0)

Desired behavior You get the actual error message, e.g. error: not_authed

Explanation

Possible Fixes

dblock commented 1 year ago

I think we want to wrap the whole CLI to make it future-proof, aka your second option. Want to PR?

blowfishpro commented 1 year ago

I think that would involve wrapping everything in bin/commands in module(s) - it would be a lot of changes but relatively straightforward. I can do that if that sounds reasonable.

dblock commented 1 year ago

@blowfishpro Sounds reasonable I think! Thanks.