code overhaul

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2018-07-27 06:32:29 +03:00
parent 6afb99d1ce
commit b10611f5ae
3 changed files with 126 additions and 36 deletions

View File

@@ -1,10 +1,22 @@
sx-open
=======
# sx-open
sx-open is an attempt to implement a saner alternative to xdg-open.
Installation
------------
## Installation
Clone the repo, drop sx-open.cfg into your $HOME/.config.
As this thing is meant to replace xdg-open, you will probably want to link sx-open into xdg-open somewhere in your $PATH as to override the default one.
## Usage
sx-open [-dhv] <uri/file>
Flags:
-d Dry run
-v Verbose
-h Help
### Exit codes
* 1 — action failed
* 2 — file not found
* 3 — no handlers found