| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.verbs.verbs; | 5 library dartino_compiler.verbs.verbs; |
| 6 | 6 |
| 7 import 'infrastructure.dart' show | 7 import 'infrastructure.dart' show |
| 8 AnalyzedSentence, | 8 AnalyzedSentence, |
| 9 Future, | 9 Future, |
| 10 TargetKind, | 10 TargetKind, |
| 11 VerbContext; | 11 VerbContext; |
| 12 | 12 |
| 13 import 'attach_verb.dart' show | 13 import 'attach_verb.dart' show |
| 14 attachAction; | 14 attachAction; |
| 15 | 15 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 requiresTargetSession; | 103 requiresTargetSession; |
| 104 } | 104 } |
| 105 | 105 |
| 106 | 106 |
| 107 // TODO(ahe): Support short and long documentation. | 107 // TODO(ahe): Support short and long documentation. |
| 108 | 108 |
| 109 /// Common actions are displayed in the default help screen. | 109 /// Common actions are displayed in the default help screen. |
| 110 /// | 110 /// |
| 111 /// Please make sure their combined documentation fit in in 80 columns by 20 | 111 /// Please make sure their combined documentation fit in in 80 columns by 20 |
| 112 /// lines. The default terminal size is normally 80x24. Two lines are used | 112 /// lines. The default terminal size is normally 80x24. Two lines are used |
| 113 /// for the prompts before and after running fletch. Another two lines may be | 113 /// for the prompts before and after running dartino. Another two lines may be |
| 114 /// used to print an error message. | 114 /// used to print an error message. |
| 115 const Map<String, Action> commonActions = const <String, Action>{ | 115 const Map<String, Action> commonActions = const <String, Action>{ |
| 116 "help": helpAction, | 116 "help": helpAction, |
| 117 "run": runAction, | 117 "run": runAction, |
| 118 "show": showAction, | 118 "show": showAction, |
| 119 "quit": quitAction, | 119 "quit": quitAction, |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 /// Uncommon verbs aren't displayed in the normal help screen. | 122 /// Uncommon verbs aren't displayed in the normal help screen. |
| 123 /// | 123 /// |
| 124 /// These verbs are displayed when running `fletch help all`. | 124 /// These verbs are displayed when running `dartino help all`. |
| 125 const Map<String, Action> uncommonActions = const <String, Action>{ | 125 const Map<String, Action> uncommonActions = const <String, Action>{ |
| 126 "attach": attachAction, | 126 "attach": attachAction, |
| 127 "compile": compileAction, | 127 "compile": compileAction, |
| 128 "create": createAction, | 128 "create": createAction, |
| 129 "debug": debugAction, | 129 "debug": debugAction, |
| 130 "export": exportAction, | 130 "export": exportAction, |
| 131 "x-download-tools": downloadToolsAction, | 131 "x-download-tools": downloadToolsAction, |
| 132 "x-end": endAction, | 132 "x-end": endAction, |
| 133 "x-servicec": servicecAction, | 133 "x-servicec": servicecAction, |
| 134 "x-upgrade": upgradeAction, | 134 "x-upgrade": upgradeAction, |
| 135 }; | 135 }; |
| OLD | NEW |