summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-11-27 14:15:31 +0100
committerDaniel Weipert <code@drogueronin.de>2022-01-10 13:28:28 +0100
commit63b6d76ca9febeef52cd8ec43022ee573532173f (patch)
treeac9452cfb41950920d9c7c5593617558dcc4cb99 /lua
Initial commit
Diffstat (limited to 'lua')
-rw-r--r--lua/rclone.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/rclone.lua b/lua/rclone.lua
new file mode 100644
index 0000000..fb444d4
--- /dev/null
+++ b/lua/rclone.lua
@@ -0,0 +1,20 @@
+local function find_config_file()
+ -- TODO: find config file
+end
+
+local function get_config()
+ -- TODO: rclone config dump --config=find_config_file()
+end
+
+local function get_remote_config()
+ -- TODO: read json from get_config() and get default remote
+end
+
+local function copy()
+ -- TODO: rclone copy $LOCAL_PATH $REMOTE:$REMOTE_PATH --config=find_config_file()
+end
+
+return {
+ copy = copy,
+}
+