2018-01-22 04:26:17 +00:00
|
|
|
-- Code generated by protoc-gen-twirp_eclier v5.0.0DO NOT EDIT
|
|
|
|
-- source: route.proto
|
|
|
|
|
|
|
|
script.verb = "backends:kill"
|
|
|
|
script.help = "Executes method kill on service backends for twirp package xeserv.us.route.backends"
|
|
|
|
script.author = "machine-generated"
|
|
|
|
script.version = "v5.0.0"
|
|
|
|
script.usage = ""
|
|
|
|
|
|
|
|
local flag = require "flag"
|
|
|
|
local svc = require "svc"
|
|
|
|
|
|
|
|
local fs = flag.new()
|
|
|
|
|
|
|
|
-- flags for BackendId
|
|
|
|
fs:string("id", "", "value for message arg id")
|
|
|
|
|
|
|
|
script.usage = fs:usage()
|
|
|
|
|
|
|
|
function run(arg)
|
|
|
|
if arg[1] == "-help" or arg[1] == "--help" then
|
|
|
|
print(fs:usage())
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
arg[0] = script.verb
|
|
|
|
local flags = fs:parse(arg)
|
|
|
|
|
2018-01-22 05:17:36 +00:00
|
|
|
local resp = svc.new(apiURL, token):backends():kill(flags)
|
2018-01-22 04:26:17 +00:00
|
|
|
|
|
|
|
end
|