| 1 | #Region "Microsoft.VisualBasic::d58e9e4ff3a990ea609ac5c630d5c341, Microsoft.VisualBasic.Core\CommandLine\Interpreters\Abstract.vb" |
| 2 | |
| 3 | ' Author: |
| 4 | ' |
| 5 | ' asuka (amethyst.asuka@gcmodeller.org) |
| 6 | ' xie (genetics@smrucc.org) |
| 7 | ' xieguigang (xie.guigang@live.com) |
| 8 | ' |
| 9 | ' Copyright (c) 2018 GPL3 Licensed |
| 10 | ' |
| 11 | ' |
| 12 | ' GNU GENERAL PUBLIC LICENSE (GPL3) |
| 13 | ' |
| 14 | ' |
| 15 | ' This program is free software: you can redistribute it and/or modify |
| 16 | ' it under the terms of the GNU General Public License as published by |
| 17 | ' the Free Software Foundation, either version 3 of the License, or |
| 18 | ' (at your option) any later version. |
| 19 | ' |
| 20 | ' This program is distributed in the hope that it will be useful, |
| 21 | ' but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | ' GNU General Public License for more details. |
| 24 | ' |
| 25 | ' You should have received a copy of the GNU General Public License |
| 26 | ' along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 27 | |
| 28 | |
| 29 | |
| 30 | ' /********************************************************************************/ |
| 31 | |
| 32 | ' Summaries: |
| 33 | |
| 34 | ' Delegate Function |
| 35 | ' |
| 36 | ' |
| 37 | ' Delegate Function |
| 38 | ' |
| 39 | ' |
| 40 | ' Delegate Function |
| 41 | ' |
| 42 | ' |
| 43 | ' |
| 44 | ' |
| 45 | ' |
| 46 | ' |
| 47 | ' |
| 48 | ' /********************************************************************************/ |
| 49 | |
| 50 | #End Region |
| 51 | |
| 52 | Namespace CommandLine |
| 53 | |
| 54 | ''' <summary> |
| 55 | ''' 假若所传入的命令行的name是文件路径,解释器就会执行这个函数指针 |
| 56 | ''' </summary> |
| 57 | ''' <param name="path"></param> |
| 58 | ''' <param name="args"></param> |
| 59 | ''' <returns></returns> |
| 60 | Public Delegate Function ExecuteFile(path As String, args As CommandLine) As Integer |
| 61 | ''' <summary> |
| 62 | ''' 假若所传入的命令行是空的,就会执行这个函数指针 |
| 63 | ''' </summary> |
| 64 | ''' <returns></returns> |
| 65 | Public Delegate Function ExecuteEmptyCLI() As Integer |
| 66 | |
| 67 | ''' <summary> |
| 68 | ''' 假若查找不到命令的话,执行这个函数 |
| 69 | ''' </summary> |
| 70 | ''' <param name="args"></param> |
| 71 | ''' <returns></returns> |
| 72 | Public Delegate Function ExecuteNotFound(args As CommandLine) As Integer |
| 73 | |
| 74 | End Namespace |