cli.lua.8 (2a22df74e9fceaffd62ee437de08383d6cf8cfe0) cli.lua.8 (af876563d19f14b5bcf2fcc6050f58428174545a)
1.\"
2.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3.\"
4.\" Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
1.\"
2.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3.\"
4.\" Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
29.Dd October 31, 2018
29.Dd September 13, 2019
30.Dt CLI.LUA 8
31.Os
32.Sh NAME
33.Nm cli.lua
34.Nd FreeBSD Lua CLI module
35.Sh DESCRIPTION
36.Nm
37contains the main functionality required to add new CLI commands, which can be

--- 39 unchanged lines hidden (view full) ---

77.Ic foo .
78Arguments may be passed to it as usual, space-delimited.
79.Ss Default Commands
80As of present, the
81.Nm
82module by default provides commands for
83.Ic autoboot ,
84.Ic boot ,
30.Dt CLI.LUA 8
31.Os
32.Sh NAME
33.Nm cli.lua
34.Nd FreeBSD Lua CLI module
35.Sh DESCRIPTION
36.Nm
37contains the main functionality required to add new CLI commands, which can be

--- 39 unchanged lines hidden (view full) ---

77.Ic foo .
78Arguments may be passed to it as usual, space-delimited.
79.Ss Default Commands
80As of present, the
81.Nm
82module by default provides commands for
83.Ic autoboot ,
84.Ic boot ,
85.Ic boot-conf ,
85and
86and
86.Ic boot-conf.
87In all three cases, the
87.Ic reload-conf .
88.Pp
89For
90.Ic autoboot ,
91.Ic boot ,
92and
93.Ic boot-conf ,
94the
88.Xr core.lua 8
89module will load all ELF modules as-needed before executing the equivalent
90built-in loader commands.
91All non-kernel arguments to these commands are passed in the same order to the
92loader command.
95.Xr core.lua 8
96module will load all ELF modules as-needed before executing the equivalent
97built-in loader commands.
98All non-kernel arguments to these commands are passed in the same order to the
99loader command.
100.Pp
101The
102.Ic reload-conf
103command will reload the configuration from disk.
104This is useful if you have manually changed currdev and would like to easily
105reload the configuration from the new device.
93.Ss Exported Functions
94The following functions are exported from
95.Nm :
96.Bl -tag -width cli.arguments -offset indent
97.It Fn cli.arguments ...
98Takes varargs passed on the stack from
99.Xr loader 8
100to

--- 13 unchanged lines hidden ---
106.Ss Exported Functions
107The following functions are exported from
108.Nm :
109.Bl -tag -width cli.arguments -offset indent
110.It Fn cli.arguments ...
111Takes varargs passed on the stack from
112.Xr loader 8
113to

--- 13 unchanged lines hidden ---