Files
herolib/lib/clients/rclone
Mahmoud-Emad f789564f51 feat: Add encoderhero and heroscript_dumps/loads
- Add encoderhero import to multiple modules
- Implement heroscript_dumps and heroscript_loads functions
- Update several methods to use `if mut` for cleaner optionals
- Rename rclone globals for clarity
2025-10-13 21:49:19 +03:00
..
...
2025-10-13 08:30:42 +04:00
2024-12-25 22:30:33 +01: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