rezanid / PSDataverse

PowerShell module that brings Dataverse's Web API to PowerShell 7 with features like piping, batching and more.
MIT License
12 stars 2 forks source link

Shorten the name of cmdlets #24

Open rezanid opened 1 year ago

rezanid commented 1 year ago

Currently all Cmdlets use the following pattern for naming:

<verb>-Dataverse<noun>

For operations that have long noun part in the name like Get-DataverseRowCount, it can be tedious to type such a long name.

Consider renaming all the existing Cmdlets to the following pattern:

<verb>-Dv<noun>

To continue supporting the current names, old functions can become wrappers to call new functions.

Function Clear-DvTable {
    # Implementation here
}
Function Clear-DataverseTable {
  Clear-DvTable
}
rvdwegen commented 1 year ago

Generally in Powershell names of functions and operations are verbose, with a shorter alias as alternative. Would that not be a better solution?

rezanid commented 1 year ago

Generally in Powershell names of functions and operations are verbose, with a shorter alias as alternative. Would that not be a better solution?

Indeed, that's a good proposition. Though we will need to pick good aliases that are short yet distinctive enough.