Documentation

Support

Unity Version Control

CHECKSELECTORSYNTAX

Check selector syntax with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago

Description

Checks the syntax of a selector.

Usage

cm checkselectorsyntax | css --file=<selector_file>
(Checks the selector file syntax.)
cat <selector_file> | cm checkselectorsyntax | css -
(Unix. Checks selector file from standard input.)
type <selector_file> | cm checkselectorsyntax | css -
(Windows. Checks selector file from standard input.)

Options

Option / Argument

Description

--fileThe file to read a selector from.

Help

Remarks

This command reads a selector on either a file or standard input, and checks it for valid syntax. If the syntax check fails, the reason is printed on standard output.

Examples

cm checkselectorsyntax --file=myselector.txt
(Checks the syntax of 'myselector.txt' file.)
cat myselector.txt | cm checkselectorsyntax
(Checks the syntax of 'myselector.txt' from standard input.)