From e785236cc8383acbd615a0fa193588851093221b Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 11 Jan 2025 23:57:21 +0200
Subject: [PATCH] megacmd shell function.

Runs the Mega CLI in a container from the image in the dockerfiles repo
in the Kodi host.
---
 .bashrc.d/megacmd | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 .bashrc.d/megacmd

diff --git a/.bashrc.d/megacmd b/.bashrc.d/megacmd
new file mode 100644
index 0000000..cc385dd
--- /dev/null
+++ b/.bashrc.d/megacmd
@@ -0,0 +1,7 @@
+# shellcheck shell=bash
+# vim: ft=sh
+
+megacmd() {
+    docker --context kodi image pull registry.shore.co.il/megacmd
+    docker --context kodi run --rm --volume "/srv/library:/Downloads" registry.shore.co.il/megacmd "$@"
+}
-- 
GitLab