REPOSITORY LIST
List repositories with the Unity Version Control CLI.
読み終わるまでの所要時間 1 分最終更新 9ヶ月前
Description
Lists the repositories on a server.
Usage
cm repository | repo [list | ls] [<repserverspec>] [--format=<str_format>]
Options
Option / Argument | Description |
|---|---|
| repserverspec | Repository server specification. (Use 'cm help objectspec' to learn more about rep server specs.) |
| --format | Retrieves the output message in a specific format. See Remarks for more info. |
Help
Remarks
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 |
|---|---|
| Repository identifier. |
| Repository name. |
| Server name. |
| Repository owner. |
| Unique identifier of the repository. |
| Inserts a tab space. |
| Inserts a new line. |
If the format parameter value is 'TABLE', the output will be printed using a table format with the , and fields.
{repid}{repname}{repserver}Examples
cm repository
(Lists all repositories.)
cm repository list localhost:8084 --format="{1, -20} {3}"
(Writes the repository name in 20 spaces, aligned to left, then a blank, and then the repository owner.)
cm repository ls localhost:8084 --format="{repname, -20} {repowner}"
(Writes the same as the previous example.)
cm repo ls localhost:8084 --format=TABLE
(Writes the list of repositories using a table format with the following fields: repository id, repository name, and repository server name.)