Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Detect starting from Windows explorer

License

NotificationsYou must be signed in to change notification settings

inconshreveable/mousetrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

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?

Motivation

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 interface

The library exposes a single interface:

func StartedByExplorer() (bool)

About

Detect starting from Windows explorer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp