Skip to content

Shorter Cmdlet Aliases #26

@mattcargile

Description

@mattcargile

I know aliases can be disputed and such on commands. I still think it would be a worthy investment to add some default aliases in the module built-in to the psd1 and using the param [Alias('galias')] attribute. Considering, I assume this module will be used interactively ( at least that is how I imagine it ).

I haven't thought about the exact aliases too much. Just wanted to throw it out there. I would say we should begin the aliases with ct for ConvertTo and cf for ConvertFrom like the output from Get-Verb Convert*.

So maybe

  1. ctstr for ConvertTo-String
  2. cfbatms for ConvertFrom-ByteArrayToMemoryStream
  3. cfbatbs for ConvertFrom-ByteArrayToBase64

Not sure if Base64 should be bs or b64 . Not having to type numbers would be nicer, I think. ms makes sense for MemoryStream and ba for ByteArray. Not sure if we need a t for the To portion.

I did a quick Find-PSResource -CommandName check and didn't see any collisions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions