On Jun 20, 10:31 am, Andrew <andrey.vel...@gmail.com> wrote:
> I have started from here (Cmdlet Development Guidelines):http://msdn2.microsoft.com/en-us/library/ms714657.aspx
> And required is "Use Only Approved Verbs"
> I would like to know what is better:
> use one of approved verb, that is not suitable by meaning (like Write) or
> choose not approved, which seems to be corect in meaning (like Deploy)
> I'm not an expert in PowerShell development...
Well I don't think that there are very many experts anywhere outside
of Microsoft yet.
I'm certainly not one! I suggest that you read
the link I sent, it provides the background for Microsoft's new
command-line standards. In turn it links to the actual doc that lists
the suggested verb names and the names of some obsoleted terms. Here
is the direct link: http://www.microsoft.com/technet/scr...std.mspx#EWHAC
(P.S. There is another version here (http://msdn2.microsoft.com/en-us/
library/ms714428.aspx) --hopefully someone on this list can explain
which is authoratative?)
The answer to your "which is correct" question is this:
These are guidelines. They are not laws that the Powershell Police
will use to imprison you for not conforming to their standards.
But I think most would agree that you would be wise to conform if you
are sharing your code with anyone besides yourself, simply because
this is the consistent way to do things that Microsoft themselves will
be conforming to. If you follow their standards, then the next person
to look at your code or use your cmdlets should have an easier time
understanding what it is that they do.
As far as your two examples, I would probably choose "invoke" for
"execute". "Deploy" is a bit more vague and might be best replaced
by: start, connect, install, or new.