Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 1 | // Code generated by cue get go. DO NOT EDIT. |
| 2 | |
| 3 | // Package cli provides tasks dealing with a console. |
| 4 | // |
| 5 | // These are the supported tasks: |
| 6 | // |
| 7 | // // Print sends text to the stdout of the current process. |
| 8 | // Print: { |
Marcel van Lohuizen | 44df1a8 | 2019-12-05 16:44:22 +0100 | [diff] [blame] | 9 | // $id: *"tool/cli.Print" | "print" // for backwards compatibility |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 10 | // |
| 11 | // // text is the text to be printed. |
| 12 | // text: string |
| 13 | // } |
| 14 | // |
Marcel van Lohuizen | 6081b52 | 2019-06-22 15:43:52 +0200 | [diff] [blame] | 15 | // // TODO: |
| 16 | // // Ask prompts the current console with a message and waits for input. |
| 17 | // // |
| 18 | // // Example: |
Marcel van Lohuizen | 44df1a8 | 2019-12-05 16:44:22 +0100 | [diff] [blame] | 19 | // // task: ask: cli.Ask({ |
Marcel van Lohuizen | 6081b52 | 2019-06-22 15:43:52 +0200 | [diff] [blame] | 20 | // // prompt: "Are you okay?" |
| 21 | // // repsonse: bool |
| 22 | // // }) |
| 23 | // // Ask: { |
| 24 | // // kind: "tool/cli.Ask" |
| 25 | // |
| 26 | // // // prompt sends this message to the output. |
| 27 | // // prompt: string |
| 28 | // |
| 29 | // // // response holds the user's response. If it is a boolean expression it |
| 30 | // // // will interpret the answer using textual yes/ no. |
| 31 | // // response: string | bool |
| 32 | // // } |
| 33 | // |
Marcel van Lohuizen | 42ebafe | 2019-04-27 01:24:54 +0200 | [diff] [blame] | 34 | package cli |