- Notifications
You must be signed in to change notification settings - Fork37
Detect starting from Windows explorer
License
inconshreveable/mousetrap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mousetrap is a tiny library that answers a single question.
On a Windows machine, was the process invoked by someone double clicking onthe executable file while browsing in explorer?
Windows developers unfamiliar with command line tools will often "double-click"the executable for a tool. Because most CLI tools print the help and then exitwhen invoked without arguments, this is often very frustrating for those users.
mousetrap provides a way to detect these invocations so that you can providemore helpful behavior and instructions on how to run the CLI tool. To see whatthis looks like, both from an organizational and a technical perspective, seehttps://inconshreveable.com/09-09-2014/sweat-the-small-stuff/
The library exposes a single interface:
func StartedByExplorer() (bool)
About
Detect starting from Windows explorer
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.