Files
herolib/lib/clients/rcloneclient
Mahmoud-Emad 9d79408931 refactor: Pass rclone name as keyword argument
- Update rclone.new call to use named argument
2025-11-17 15:28:47 +02:00
..
...
2025-10-29 09:35:46 +04:00
...
2025-10-29 09:35:46 +04:00
...
2025-10-29 09:36:37 +04:00
...
2025-10-29 09:35:46 +04:00
...
2025-10-29 09:35:46 +04:00
...
2025-10-29 09:35:46 +04:00

a sal to work with rclone

Rclone is this incredible swiss army knive to deal with S3 storage servers.

Example

import incubaid.herolib.osal.core.rclone

fn main() {
 do() or { panic(err) }
}

fn do() ! {
 mut z:=rclone.new()!

 // name      string            @[required]
 // cmd       string            @[required]
 // cmd_file  bool  //if we wanna force to run it as a file which is given to bash -c  (not just a cmd in rclone)
 // test      string
 // test_file bool
 // after     []string
 // env       map[string]string
 // oneshot   bool
 p:=z.new(
  name:"test"
  cmd:'/bin/bash'
 )!

}

protocol defined in

sal on top of https://github.com/threefoldtech/rclone/tree/master

https://github.com/threefoldtech/rclone/blob/master/docs/protocol.md