summaryrefslogtreecommitdiff
path: root/tools/hscript-simulate/simulator.1
blob: bad08a12688048eb3276cff9380b8d9568020f9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.Dd May 16, 2020
.Dt HSCRIPT-SIMULATE 1
.Os "Adélie Linux"
.Sh NAME
.Nm hscript-simulate
.Nd simulate execution of a HorizonScript, or create shell script
.Sh SYNOPSIS
.Nm
.Op Fl hnsv
.Ar INSTALLFILE
.Sh DESCRIPTION
The
.Nm
utility simulates the execution of a HorizonScript without actually executing
any commands on the host system.
.Pp
If the
.Nm
utility is run with stdout redirected to a file, it creates a shell script
representation of the HorizonScript, which can then be run on the target
computer if it is unable to run the full Horizon execution system.
.Sh OPTIONS
The
.Nm
utility supports the following options:
.Bl -tag -width Ds
.It Fl h
Displays a help message, and then exits.
.It Fl n
Disables colour output and ANSI escape sequences in any log messages.  This
is the default when not running from a terminal.
.It Fl s
Enables Strict mode, which causes more potential issues to be errors instead
of warnings.
.It Fl v
Displays the version information for this utility, and then exits.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
The following invocation will simulate execution of the HorizonScript at
.Pa example.installfile :
.Dl $ hscript-simulate example.installfile
.Pp
The following invocation will create a shell script representation of the
HorizonScript at
.Pa example.installfile
and write it to
.Pa example.sh :
.Dl $ hscript-simulate example.installfile >example.sh
.Sh DIAGNOSTICS
.Bl -diag
.It "%dateT%time log %location: %status: %message[: %extra]"
A message of type
.Cm %status
was logged while processing
.Cm %location .
The log message
.Cm %message
may be followed by additional information or hints in
.Cm %extra .
.It "%dateT%time step-start %step"
Denotes that the installation step
.Cm %step
is starting.  Steps are described in the
.Sy Steps
section of the
.Xr hscript-executor 8
manual.
.It "%dateT%time step-end %step"
Denotes that the installation step
.Cm %step
has finished successfully.  Steps are described in the
.Sy Steps
section of the
.Xr hscript-executor 8
manual.
.El
.Sh SEE ALSO
.Xr hscript-validate 1 ,
.Xr hscript 5 ,
.Xr hscript-executor 8 .
.Sh HISTORY
The
.Nm
command first appeared in Horizon 0.1.
.Sh AUTHORS
.An A. Wilcox
.Aq awilfox@adelielinux.org