evtemplate

Produces an editor template for the evadd and evupdate CLI commands.

SYNOPSIS

evtemplate [-u]

DESCRIPTION

This command produces an editor template for the evadd and evupdate commands. This template may contain comment blocks and the metadata will be neatly enumerated.

The generated file contains field titles, followed by a colon and a space, similar to what is obtained within your editor when you use evadd -e. The difference is that, for metadata fields with multiple values such as PRIORITY and STATUS, the choices are presented in comment blocks. This gives the user a list of all possible valid values that can be entered, eliminating the need to know in advance the values.

The -u flag generates the template for the update screen as opposed to the add screen.

The following example shows the generation of the template file for the add screen, and then invokes the editor with the template.

EXAMPLE

The following example shows the generation of the template file for the add screen then invokes the editor with the template.

$ evtemplate > my_input_file.dat
$ evadd -e -f mytemplate.dat
$


Here is the raw output from the evtemplate command.

$ evtemplate
###########################
# Type in value for Title.
###########################

Title:

###########################
# Type in value for Product.
#
# Values for Product:
# -----------------
# Globe Power
# Cell Power
# Web Power
###########################

Product:

###########################
# Type in value for Status.
#
# Values for Status:
# -----------------
# Closed
# Fixed
# Open
# Pending
# Unassigned
#
# Default value provided.
###########################

Status: Unassigned

###########################
# Type in value for Category.
#
# Values for Category:
# -----------------
# Software
# Documentation
# Hardware
###########################

Category:

###########################
# Type in value for Priority.
#
# Values for Priority:
# -----------------
# P 1
# P 2
# P 3
###########################

Priority:

###########################
# Type in value for Module.
#
# Values for Module:
# -----------------
# Logic
# User Interface
# Database
# Phone
###########################

Module:

###########################
# Type in value for Assigned.
###########################

Assigned:

###########################
# Type in value for Description.
###########################

Description:

$