Functions
suggest changeGet-User
- Use the Verb-Noun pattern when you name a function. Call it as
Get-User, notGet-User(). Parentheses are method-call syntax, not the normal way to invoke a function. - The verb is an action, for example
Get,Set,New,Read, orWrite. See approved verbs. - The noun should be singular even if the command returns many items.
Get-Usermay return one user or many. - Use Pascal case for the verb and the noun, for example
Get-UserLogin.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents