| 1 |
(* |
| 2 |
* This file is part of Coccinelle, lincensed under the terms of the GPL v2. |
| 3 |
* See copyright.txt in the Coccinelle source code for more information. |
| 4 |
* The Coccinelle source code can be obtained at http://coccinelle.lip6.fr |
| 5 |
*) |
| 6 |
|
| 7 |
(* Get user input from interactive (commandline) mode. |
| 8 |
* Returns the user input, formatted for use, and gives the user the |
| 9 |
* opportunity to save the input in a config file. |
| 10 |
*) |
| 11 |
|
| 12 |
(* ------------------------------------------------------------------------- *) |
| 13 |
(* INTERACTION FUNCTIONS *) |
| 14 |
|
| 15 |
(* Launches interactive mode. |
| 16 |
* |
| 17 |
* Arguments: |
| 18 |
* - rule_names are the names of all */+/- rules |
| 19 |
* - config_name is the suggested name for persisting the user input. |
| 20 |
* |
| 21 |
* Returns: |
| 22 |
* - preface (description, comments, etc.) formatted for use in a string |
| 23 |
* - a list of user inputs, one per rule |
| 24 |
*) |
| 25 |
val interact : |
| 26 |
rule_names:string list -> |
| 27 |
config_name:string -> |
| 28 |
User_input.t |