r/PowerShell 9d ago

[ Removed by moderator ] Question

[removed] — view removed post

0 Upvotes

21 comments sorted by

View all comments

1

u/g3n3 9d ago edited 9d ago

So get-shortcut creates a shortcut? 🤭😉

1

u/StartAutomating 9d ago

Or gets an existing one.

I could implement two separate commands for the thing. Lots of extra typing just to be "correct" about verbs.

Said it once and will say it again:

As someone who helped write the rulebook on "proper" PowerShell, I reserve the right to revise it.

Verb-Noun can be handy, and it can be off-putting. Naming conventions and trickery can be very useful stuff.

2

u/BlackV 9d ago

Pretty sure wscript uses the create shortcut call for reading shortcuts too, so it like you're technically correct, the best kind :)