Topics: Developer Forum
Oct 24, 2006 at 12:47 AM
Sorry if you guys have already had this discussion, but I was wondering where you stand on trying to adhere to the common verbs wherever possible.

For example, you have cmdlets called "convertfrom-base64" and "convertto-base64". There's already a common verb "convert", so would it make sense to rename those cmdlets to "convert-frombase64" and "convert-tobase64"?

I think there are a few examples like this. Don't know if you guys have already had this discussion (I'll check the old GDN boards).
Oct 25, 2006 at 8:32 AM
ConvertTo, ConvertFrom and Convert are all standard PowerShell verbs. ConvertTo-SecureString and ConvertFrom-SecureString are instances of native PowerShell use of ConvertTo/From. Plus these two verbs are are defined in System.Management.Automation.VerbsData.

In general we try to use the set of Verbs* classes in that namespace for the verbs used in the CmdletAttribute defs e.g.:

Cmdlet(VerbsData.ConvertTo, "Base64")
Oct 25, 2006 at 10:08 AM
Ah, cool. That makes sense then. Thanks for clearing that up.