From 014f1fbbe69c5ad38eaf07d813582e710d059842 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 15 Feb 2020 17:51:39 +0100 Subject: [PATCH] Add basic documentation --- .gitignore | 2 ++ README.md | 24 ++++++++++++++++++++++++ go.mod | 3 +++ go.sum | 2 ++ 4 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e3c3db --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +vendor +_build diff --git a/README.md b/README.md new file mode 100644 index 0000000..1861dac --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Randomedit + +For when you can't decide what you want to start with. + +## Installation + +:warning: FIXME + + +## Usage + +Watch a random movie + + EDITOR=mpv randomedit -p '*.mkv' -p '*.mp4' -d ~/Movies + +Read a random PDF + + EDITOR=okular randomedit -p '*.pdf' -d ~/Documentation/ + +## Authors & license + +:warning: FIXME + + diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..da7a2f0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/glenux/randomedit + +require github.com/spf13/pflag v1.0.2 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..017d2dd --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/spf13/pflag v1.0.2 h1:Fy0orTDgHdbnzHcsOgfCN4LtHf0ec3wwtiwJqwvf3Gc= +github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=