From 63b6d76ca9febeef52cd8ec43022ee573532173f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 27 Nov 2021 14:15:31 +0100 Subject: Initial commit --- lua/rclone.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/rclone.lua (limited to 'lua') 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, +} + -- cgit v1.2.3