view src/luan/modules/host/push_file.luan @ 1788:0a06d59578aa

add push_file
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 Dec 2023 09:48:52 -0700
parents src/luan/modules/host/push.luan@1a68fc55a80c
children
line wrap: on
line source

local Io = require "luan:Io.luan"
local print = Io.print
local Hosting = require "luan:host/Hosting.luan"

if #{...} ~= 4 then
	Io.stderr.write "usage: luan luan:host/push_test.luan domain password dir file\n"
	return
end

Hosting.push_file(...)

print("done with "..(...))