|
1 | 1 | /******************************************************************************* |
2 | 2 | * SysML 2 Pilot Implementation |
3 | | - * Copyright (c) 2021 Model Driven Solutions, Inc. |
| 3 | + * Copyright (c) 2021, 2025 Model Driven Solutions, Inc. |
4 | 4 | * Copyright (c) 2021 Twingineer LLC |
5 | 5 | * Copyright (c) 2022 Mgnite Inc. |
6 | 6 | * |
@@ -42,7 +42,7 @@ public class SysMLInteractiveHelp { |
42 | 42 | + "%export\t\tSave a file of the JSON representation of the abstract syntax tree rooted in the named element.\n" |
43 | 43 | + "%help\t\tGet a list of available commands or help on a specific command\n" |
44 | 44 | + "%list\t\tList loaded library packages or the results of a given query\n" |
45 | | - + "%load\tLoads a model from the repository and adds it to the Xtext index\n" |
| 45 | + + "%load\t\tLoad a model from the repository\n" |
46 | 46 | + "%show\t\tPrint the abstract syntax tree rooted in a named element\n" |
47 | 47 | + "%projects\tList projects in the repository\n" |
48 | 48 | + "%publish\tPublish to the repository the modele elements rooted in a named element\n" |
@@ -79,11 +79,15 @@ public class SysMLInteractiveHelp { |
79 | 79 | + " JSON\t\tComplete JSON representation of the tree\n"; |
80 | 80 |
|
81 | 81 | private static final String PUBLISH_HELP_STRING = |
82 | | - "Usage: %publish <NAME>\n\n" |
| 82 | + "Usage: %publish [-d] [--project=<PROJECT NAME>] [--branch=<BRANCH NAME>] <NAME>\n\n" |
83 | 83 | + "Publish the model elements rooted in <NAME> to the repository. <NAME> must be fully qualified.\n" |
84 | | - + "Use the --project parameter to specify a project to create or update. If not specified, a new project is created with the name of the model element and a timestamp.\n" |
85 | | - + "Use the -d flag to include derived properties\n" |
86 | | - + "(Experimental) Use --branch to specify the target branch name. If not specified, the default branch is selected.\n"; |
| 84 | + + "Use the -d flag to include derived properties.\n" |
| 85 | + + "If <PROJECT NAME> is given, it is used as the name of the project to create or update.\n" |
| 86 | + + "If <PROJECT NAME> is not given, the (simple) name of the model element is used.\n" |
| 87 | + + " If no project exits with the given name, then a new project with that name is created.\n" |
| 88 | + + " Otherwise, a new project is created with the given name.\n" |
| 89 | + + "If <BRANCH NAME> is given, then the model is written to this branch of the project.\n" |
| 90 | + + "If <BRANCH NAME> is not given, the default branch is used.\n"; |
87 | 91 |
|
88 | 92 | private static final String VIZ_HELP_STRING = |
89 | 93 | "Usage: %viz [--view=<VIEW>] [--style=<STYLE>...] <NAME> [<NAME>...]\n\n" |
@@ -123,15 +127,17 @@ public class SysMLInteractiveHelp { |
123 | 127 | + "<NAME> must be fully qualified.\n"; |
124 | 128 |
|
125 | 129 | private static final String LOAD_HELP_STRING = |
126 | | - "Usage: %load [--branch=<BRANCH_NAME>] [--id=<PROJECT ID] [--name=<NAME>] [<NAME>]\n\n" |
127 | | - + "Downloads previously published models from the repository. <NAME> must be the full name of the project.\n" |
128 | | - + "Use --id=<PROJECT ID> to load projects by id. It is not supported to provide both id and name.\n" |
129 | | - + "(Experimental) Use --branch=<BRANCH_NAME> to select the branch to load from. If not specified, the default branch is used.\n" |
130 | | - + "Use %projects to view repository contents.\n"; |
| 130 | + "Usage: %load [--id=<PROJECT ID] [--name=<NAME>] [--branch=<BRANCH_NAME>] [<NAME>]\n\n" |
| 131 | + + "Download previously published models from a project in the repository. <NAME> is the full name of the project.\n" |
| 132 | + + "Named elements of the downloaded models may then be referenced models in the notebook." |
| 133 | + + "(Use %projects to view repository contents.)\n" |
| 134 | + + "If <PROJECT ID> is given, then the project with that UUID is loaded. In this case, the <NAME> must not be given.\n" |
| 135 | + + "If <BRANCH NAME> is given, then the model is loaded from this branch of the project.\n" |
| 136 | + + "If <BRANCH NAME> is not given, the default branch is used.\n"; |
131 | 137 |
|
132 | 138 | private static final String PROJECTS_HELP_STRING = |
133 | 139 | "Usage: %projects\n\n" |
134 | | - + "Returns the name and identifier from the repository for all publications\n"; |
| 140 | + + "Print the name and identifier of all projects in the repository.\n"; |
135 | 141 |
|
136 | 142 | public static String getGeneralHelp() { |
137 | 143 | return GENERAL_HELP_STRING; |
|
0 commit comments