rdclilogedit — Command-line editor for Rivendell logs
rdclilogedit(1) is a command-line editor for Rivendell logs. It is loosely styled after the venerable ed(1) command-line text editor.
-n
, --quiet
, --silent
Suppress generation of the command-line prompt (often desirable when driving rdclilogedit(1) from a script).
rdclilogedit(1) supports the
notion of an 'edit buffer' into which Rivendell logs can be loaded,
modified and then saved back to the Rivendell database. The contents
of the edit buffer can be manipulated by means of simple textual commands
(seperated by newline or ;
sent to STDIN). The
following commands are supported:
line
}
{cart-num
}
Add a new cart event before line
line
using cart
cart-num
.
line
}
{log-name
}
Add a new chain-to event before line
line
pointing to
log-name
.
line
}
Add a new marker event before line line
.
line
}
Add a new track event before line line
.
Exit the program.
log-name
}
Delete the log log-name
from the
Rivendell database.
Exit the program.
Print the header data for the currently loaded log.
cmd-name
]
Print help about command cmd-name
. If
cmd-name
is
omitted, print the full list of available commands.
Print the log in the edit buffer.
Print a list of the available Rivendell logs.
Print a list of the available Rivendell services.
log-name
}
Load the log log-name
into the edit buffer.
log-name
}
Create a new, empty log called
log-name
in the edit buffer.
Exit the program.
line
}
Remove the log event at line line
in
the edit buffer.
Save the contents of the edit buffer.
log-name
}
Save the contents of the edit buffer to a new log called
log-name
.
yes
|no
}
Set the state of the log's auto-refresh flag.
line
}
{cart-num
}
Set the cart event at line line
to use
cart number cart-num
.
line
}
{str
}
Set the Comment field of the marker or track event at line
line
to str
.
str
}
Set the Description field of the log to
str
.
date
]
Set the End Date of the log to date
,
where date
is in the format
YYYY-MM-DD
. To clear the End Date
value completely, omit the date
parameter.
line
}
{str
}
Set the Label field of the chain-to or marker event at line
line
to str
.
date
]
Set the Purge Date of the log to date
,
where date
is in the format
YYYY-MM-DD
. To clear the Purge Date
value completely, omit the date
parameter.
str
}
Set the log's owning Service to str
.
(To print a list of valid Service names, see
listservices
).
date
]
Set the Start Date of the log to date
,
where date
is in the format
YYYY-MM-DD
. To clear the Start Date
value completely, omit the date
parameter.
line
}
{hard
|none
}
[time
]
Set the start time type and value for a log event. When
specifying a type of hard
, the
time
value (format
HH:MM:SS
) must also be specified.
line
}
{play
|segue
|stop
}
Set the transition type for a log event.
Unload and clear the contents of the edit buffer.