Giter Site home page Giter Site logo

Comments (5)

RamblingCookieMonster avatar RamblingCookieMonster commented on August 18, 2024

@Jaykul - agreed! AFAIK this is just the verbose output from Invoke-RESTMethod? Would you suggest explicitly setting -Verbose:$False or something along those lines?

For debugging purposes, I'd probably still want a -ForceVerbose or some such parameter to override that behavior - would that make sense?

from psslack.

Jaykul avatar Jaykul commented on August 18, 2024

I suppose it might be -- cmdlets from other modules don't automatically inherit -Verbose though. You must be specifically passing it. I wish there was a way to intercept verbose output like there is for warnings.

Anyway, all you have to do is not explicitly pass -Verbose to it. Then, the -Verbose on your commands won't pass through to that command, but setting $VerbosePreference in the global scope would...

from psslack.

RamblingCookieMonster avatar RamblingCookieMonster commented on August 18, 2024

Couldn't find anything explicitly setting verbose, if that's not supposed to write verbose output in this scenario (verbose flag on function calling invoke-restmethod) perhaps it's a bug?

Anyhow! Added some janky handling to sanitize output. You can override and still show verbose output via -ForceVerbose on commands that call Invoke-RESTMethod (Send-SlackApi, Send-SlackFile, Send-SlackMessage), or globally via Set-PSSlackConfig -ForceVerbose $True`

from psslack.

Jaykul avatar Jaykul commented on August 18, 2024

Yeah, looking at your code, I'm not sure how that happened... I had assumed you were just splatting bound parameters through...

from psslack.

RamblingCookieMonster avatar RamblingCookieMonster commented on August 18, 2024

Closing this out - merged a PR that I think should obscure the token by default, unless you override things

Thanks for catching this!

from psslack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.