mirror of https://github.com/Hilbis/Hilbish
docs: add descriptions for types
parent
731b3db2de
commit
a64f946055
|
@ -35,7 +35,7 @@ Returns the last added job from the table.
|
|||
|
||||
## Types
|
||||
## Job
|
||||
Job Type.
|
||||
The Job type describes a Hilbish job.
|
||||
### Properties
|
||||
- `cmd`: The user entered command string for the job.
|
||||
- `running`: Whether the job is running or not.
|
||||
|
|
|
@ -44,7 +44,7 @@ Retrieves a timer via its ID.
|
|||
|
||||
## Types
|
||||
## Timer
|
||||
Timer type.
|
||||
The Job type describes a Hilbish timer.
|
||||
### Properties
|
||||
- `type`: What type of timer it is
|
||||
- `running`: If the timer is running
|
||||
|
|
2
job.go
2
job.go
|
@ -26,7 +26,7 @@ var jobMetaKey = rt.StringValue("hshjob")
|
|||
// #property exitCode The last exit code of the job.
|
||||
// #property stdout The standard output of the job. This just means the normal logs of the process.
|
||||
// #property stderr The standard error stream of the process. This (usually) includes error messages of the job.
|
||||
// Job Type.
|
||||
// The Job type describes a Hilbish job.
|
||||
type job struct {
|
||||
cmd string
|
||||
running bool
|
||||
|
|
2
timer.go
2
timer.go
|
@ -19,7 +19,7 @@ const (
|
|||
// #property type What type of timer it is
|
||||
// #property running If the timer is running
|
||||
// #property duration The duration in milliseconds that the timer will run
|
||||
// Timer type.
|
||||
// The Job type describes a Hilbish timer.
|
||||
type timer struct{
|
||||
id int
|
||||
typ timerType
|
||||
|
|
Loading…
Reference in New Issue