文档

Unity Version Control

TRIGGER LIST

List triggers with the Unity Version Control CLI.
阅读时间1 分钟最后更新于 4 天前

Description

Lists the triggers of a given type on a server.

Usage

cm trigger | tr list | ls [<subtype-type>] [--server=<repserverspec>] [--format=<str_format>]

Options

Option / Argument

Description

--serverLists the triggers on the specified server. If no server is specified, executes the command on the one configured on the client. (Use 'cm help objectspec' to learn more about server specs.)
--formatRetrieves the output message in a specific format. See Remarks for more info.
subtype-typeTrigger execution and trigger operation. (Use 'cm showtriggertypes' to see a list of trigger types.)

Help

Remarks

If the type is not specified, lists all the triggers on the server.

Output format parameters (--format option)

This command accepts a format string to show the output.

The output parameters of this command are the following

Option / Argument

Description

Trigger position.
Trigger name.
Trigger path.
Trigger owner.
Trigger type.
Trigger filter.

Examples

cm trigger list after-mklabel
(Lists all triggers of type 'after-mklabel' on the server configured on the client.)
cm tr ls before-mkbranch --server=myserver:8084
(Lists all triggers of type 'before-mkbranch' on server 'myserver:8084'.)