Globally reduce copyright headers
[project/luci.git] / applications / luci-app-commands / luasrc / model / cbi / commands.lua
1 -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local m, s
5
6 m = Map("luci", translate("Custom Commands"),
7         translate("This page allows you to configure custom shell commands which can be easily invoked from the web interface."))
8
9 s = m:section(TypedSection, "command", "")
10 s.template = "cbi/tblsection"
11 s.anonymous = true
12 s.addremove = true
13
14
15 s:option(Value, "name", translate("Description"),
16          translate("A short textual description of the configured command"))
17
18 s:option(Value, "command", translate("Command"),
19          translate("Command line to execute"))
20
21 s:option(Flag, "param", translate("Custom arguments"),
22          translate("Allow the user to provide additional command line arguments"))
23
24 s:option(Flag, "public", translate("Public access"),
25          translate("Allow executing the command and downloading its output without prior authentication"))
26
27 return m