aboutsummaryrefslogtreecommitdiff
path: root/core/status
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-12 19:44:04 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-12 19:44:04 +0100
commita1bae69d54bfebbdb99c4beb644ebc755a75da24 (patch)
tree48507d6e3c092ce018e8e1b39887c38d2b296052 /core/status
parent8b0ecac59c4fa1d87167f4c1358c2662be3a63aa (diff)
add some example pluginsHEADmaster
Diffstat (limited to 'core/status')
-rwxr-xr-xcore/status21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/status b/core/status
new file mode 100755
index 0000000..6aad04b
--- /dev/null
+++ b/core/status
@@ -0,0 +1,21 @@
+#!/bin/sh
+[ "$1" = "info" ] && echo "show timer" && exit 2
+. "$core_path/lib"
+
+usage() {
+ cat << EOF
+$subcmd -- show timer
+
+usage:
+ $subcmd [options]
+
+options:
+ -h, --help show help
+
+actions:
+EOF
+}
+
+. "$core_path/update"
+echo "lap $lap, $([ $running -eq 1 ] && echo "running" || echo "paused"), $(fmt_time $remaining)"
+