summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
Diffstat (limited to 'help')
-rw-r--r--help/help.go13
-rw-r--r--help/help.txt35
2 files changed, 48 insertions, 0 deletions
diff --git a/help/help.go b/help/help.go
new file mode 100644
index 0000000..c19ebeb
--- /dev/null
+++ b/help/help.go
@@ -0,0 +1,13 @@
+package help
+
+import (
+ _ "embed"
+ "github.com/ewy1/pik/spool"
+)
+
+//go:embed help.txt
+var content string
+
+func Echo() {
+ _, _ = spool.Print("%v", content)
+}
diff --git a/help/help.txt b/help/help.txt
new file mode 100644
index 0000000..e5f4e4d
--- /dev/null
+++ b/help/help.txt
@@ -0,0 +1,35 @@
+Usage: pik [OPTION]... [SOURCE] [TARGET] [ARG]...
+
+If no arguments are provided, the TUI will open.
+
+Otherwise, pik will attempt to run the $TARGET script in $SOURCE.
+
+OPTIONS:
+ --help
+ print this information
+ -a, --all
+ in addition to crawling, also load all cached sources
+ -h, --here
+ run in the current working directory instead of the source folder
+ -@, --at [LOCATION]
+ run at $LOCATION instead of the source folder
+ -s, --single
+ skip triggers (pre, post, final targets)
+ -d, --dry
+ instead of running targets, echo their command
+ -r, --root
+ prefix target command with sudo
+ -y, --yes
+ assume yes for yes/no prompts
+ --env [ENVTYPE] [--env [OTHER]]...
+ load environment files that look like they belong to this category
+ -v, --version
+ print pik version and exit
+ -l, --list
+ list all available sources and targets instead of doing anything interactive
+ -i, -inline
+ disable TUI alt screen
+ --edit
+ open the target in $EDITOR instead of running it
+ --install-completion
+ install completion in your shell rc file (bash or zsh currently supported)