1 | #Region "Microsoft.VisualBasic::2fc1db2e6208fb90a99353505f436fe9, Microsoft.VisualBasic.Core\CommandLine\Reflection\CLITypes.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 | ' Enum CLITypes |
35 | ' |
36 | ' |
37 | ' |
38 | ' |
39 | ' |
40 | ' |
41 | ' |
42 | ' /********************************************************************************/ |
43 | |
44 | #End Region |
45 | |
46 | Imports Microsoft.VisualBasic.ApplicationServices |
47 | |
48 | Namespace CommandLine.Reflection |
49 | |
50 | ''' <summary> |
51 | ''' The data type enumeration of the target optional parameter switch. |
52 | ''' </summary> |
53 | ''' <remarks></remarks> |
54 | Public Enum CLITypes As Byte |
55 | |
56 | ''' <summary> |
57 | ''' 其他未知的未定义类型 |
58 | ''' (如果是未定义的类型,则在自动生成命令行参数值的时候会被忽略掉,这个时候会需要你自己进行 |
59 | ''' 手动处理这些未定义类型的参数值) |
60 | ''' </summary> |
61 | Undefined = 0 |
62 | |
63 | ''' <summary> |
64 | ''' File/directory path, is equals most string. |
65 | ''' (对于指定为路径类型的参数值,在生成命令行的时候会自动调用<see cref="CLIPath"/>函数, |
66 | ''' 在Linux系统之中,文件夹也是一种文件) |
67 | ''' </summary> |
68 | File = 1 |
69 | |
70 | ''' <summary> |
71 | ''' ``String``.(对于指定为字符串类型的参数,在调用的时候回自动调用 |
72 | ''' <see cref="Utils.CLIToken"/>函数) |
73 | ''' </summary> |
74 | ''' <remarks></remarks> |
75 | [String] = 2 |
76 | ''' <summary> |
77 | ''' Int |
78 | ''' </summary> |
79 | ''' <remarks></remarks> |
80 | [Integer] = 3 |
81 | ''' <summary> |
82 | ''' Real |
83 | ''' </summary> |
84 | ''' <remarks></remarks> |
85 | [Double] = 4 |
86 | ''' <summary> |
87 | ''' This is a flag value, if this flag presents in the CLI, then this named Boolean |
88 | ''' value is ``TRUE``, otherwise is ``FALSE``. |
89 | ''' </summary> |
90 | [Boolean] = 5 |
91 | |
92 | ' 下面是高级类型 |
93 | |
94 | ''' <summary> |
95 | ''' This cli argument parameter value is kind of binary value, |
96 | ''' we can decode this value into binary data chunks. |
97 | ''' |
98 | ''' (这个命令行参数值是base64字符串,可以看作为一个二进制输入参数) |
99 | ''' </summary> |
100 | Base64 = 100 |
101 | End Enum |
102 | End Namespace |