Coder Social home page Coder Social logo

Comments (5)

corbob avatar corbob commented on September 13, 2024 1

Good point. I don't think the Conversion verbs are a very good fit then. Based on my understanding of what this cmdlet does (which could be wrong), it generates files... The Convert* verbs all indicate taking input and outputting something.

And so I think Invoke probably fits the bill better... "Performs an action, such as running a command or a method." Build might work if you're targeting PowerShell 6+...

from cloud-developer-advocates.

vexx32 avatar vexx32 commented on September 13, 2024

Is Format- even the appropriate verb here? Format is for display formatting primarily (e.g., Format-Table, Format-Hex)

Sounds like it might be better suited for ConvertTo-*?

from cloud-developer-advocates.

corbob avatar corbob commented on September 13, 2024

I would say Convert is probably the more appropriate verb to use here. https://docs.microsoft.com/en-us/powershell/developer/cmdlet/approved-verbs-for-windows-powershell-commands#data-verbs

But definitely Format is the wrong verb: https://docs.microsoft.com/en-us/dotnet/api/System.Management.Automation.VerbsCommon.Format?view=pscore-6.2.0

from cloud-developer-advocates.

vexx32 avatar vexx32 commented on September 13, 2024

I dunno about Convert. Does this command support bidirectional conversion? Can you put its output back into it and get the original input back?

from cloud-developer-advocates.

timheuer avatar timheuer commented on September 13, 2024

Thanks for the feedback and logging the issue @kilasuit! This is a utility script mainly used by 2 people, but I appreciate the adherence to good practices. It's never imported as a module or anything, just manually run by...well, right now mostly me :-). The original author used this just as a helper and no automation and that remains. Doesn't mean we shouldn't follow some good guidance, just letting you know the context and priority.

from cloud-developer-advocates.

Related Issues (7)

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.