|
32 | 32 | import java.util.Map; |
33 | 33 |
|
34 | 34 | import org.omg.sysml.plantuml.SysML2PlantUMLStyle; |
| 35 | +import org.omg.sysml.util.traversal.facade.impl.ApiElementProcessingFacade; |
35 | 36 |
|
36 | 37 | public class SysMLInteractiveHelp { |
37 | 38 |
|
38 | 39 | private static final String GENERAL_HELP_STRING = |
39 | 40 | "The following SysML v2 magic commands are available.\n" |
40 | 41 | + "For help on a specific command, use \"%help <COMMAND>\" or \"%<cmd> -h\".\n\n" |
41 | | - + "%api-base-path\t Sets and prints the current api base path" |
| 42 | + + "%repo\t Set the api base path for the repository" |
42 | 43 | + "%eval\t\tEvaluate a given expression.\n" |
43 | 44 | + "%export\t\tSave a file of the JSON representation of the abstract syntax tree rooted in the named element.\n" |
44 | 45 | + "%help\t\tGet a list of available commands or help on a specific command\n" |
45 | 46 | + "%list\t\tList loaded library packages or the results of a given query\n" |
46 | 47 | + "%show\t\tPrint the abstract syntax tree rooted in a named element\n" |
47 | | - + "%publish\tPublish to the repository the modele elements rooted in a named element\n" |
| 48 | + + "%publish\tPublish to the repository the model elements rooted in a named element\n" |
48 | 49 | + "%view\t\tRender the view specified by the named view usage\n" |
49 | 50 | + "%viz\t\tVisualize the name model elements\n"; |
50 | 51 |
|
@@ -118,9 +119,12 @@ public class SysMLInteractiveHelp { |
118 | 119 | + "<NAME> must be fully qualified.\n"; |
119 | 120 |
|
120 | 121 | private static final String API_BASE_PATH_HELP_STRING = |
121 | | - "Usage: %api-base-path [<BASE PATH>]\n\n" |
122 | | - + "Sets the current api base path\n" |
123 | | - + "If no argument is passed it prints the current api base path"; |
| 122 | + "Usage: %repo [<BASE PATH>]\n\n" |
| 123 | + + "If <BASE PATH> is not given, print the current repository base path.\r\n" |
| 124 | + + "If <BASE PATH> is given, set the repository base path.\r\n" |
| 125 | + + "\r\n" |
| 126 | + + "<BASE PATH> is a URL giving the API base path for the repository access by the %projects, %publish and %load commands. \r\n" |
| 127 | + + "For example: " + ApiElementProcessingFacade.DEFAULT_BASE_PATH; |
124 | 128 |
|
125 | 129 | public static String getGeneralHelp() { |
126 | 130 | return GENERAL_HELP_STRING; |
@@ -173,7 +177,8 @@ private static Map<String, String> createCommandHelpMap() { |
173 | 177 | map.put("%publish", PUBLISH_HELP_STRING); |
174 | 178 | map.put("%viz", VIZ_HELP_STRING); |
175 | 179 | map.put("%view", VIEW_HELP_STRING); |
176 | | - map.put("%export", EXPORT_HELP_STRING); |
| 180 | + map.put("%export", EXPORT_HELP_STRING); |
| 181 | + map.put("%repo", API_BASE_PATH_HELP_STRING); |
177 | 182 | return map; |
178 | 183 | } |
179 | 184 |
|
|
0 commit comments