X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=b274411bd753373e0f9bfaac045dbfc4bc1be792;hp=77fa0530a01a4cc730a7ac9a3422b518a6c90b7f;hb=c3a68961859a617f7c574c528d0f8ac1fdbb53e1;hpb=87e49e7e87e570537f04e34178c9c6d2b876c16c diff --git a/src/generator.ml b/src/generator.ml index 77fa053..b274411 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4520,6 +4520,22 @@ There is no comprehensive help for this command. You have to look at the file C in the libguestfs source to find out what it is for."); + ("base64_in", (RErr, [FileIn "base64file"; Pathname "filename"]), 242, [], + [InitBasicFS, Always, TestOutput ( + [["base64_in"; "../images/hello.b64"; "/hello"]; + ["cat"; "/hello"]], "hello\n")], + "upload base64-encoded data to file", + "\ +This command uploads base64-encoded data from C +to C."); + + ("base64_out", (RErr, [Pathname "filename"; FileOut "base64file"]), 243, [], + [], + "download file and encode as base64", + "\ +This command downloads the contents of C, writing +it out to local file C encoded as base64."); + ] let all_functions = non_daemon_functions @ daemon_functions