File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ type
152
152
VariableValType * = enum
153
153
# # Used to set the type of variable's value
154
154
path, text, number
155
+ VariableName * = string
156
+ # # Used to store variables names in the database
157
+ VariableValue * = string
158
+ # # Used to store variables' values
159
+ VariableDescription * = string
160
+ # # Used to store variables' descriptions
155
161
Variable * {.tableName : " variables" .} = ref object of Model
156
162
# # Data structure for the shell's environment variable
157
163
# #
@@ -160,12 +166,12 @@ type
160
166
# # * recursive - if true, the variable is available also in subdirectories
161
167
# # * value - the value of the variable
162
168
# # * description - the description of the variable
163
- name* : string
169
+ name* : VariableName
164
170
path* : Path
165
171
recursive* : bool
166
- value* : string
172
+ value* : VariableValue
167
173
varType* : VariableValType
168
- description* : string
174
+ description* : VariableDescription
169
175
ResultCode * = distinct Natural
170
176
# # Used to store result code from commands entered by the user
171
177
CommandName * = string
Original file line number Diff line number Diff line change 45
45
'n' : " number" , 'q' : " quit" }.toTable
46
46
# # The list of available options when setting the type of a variable's value
47
47
48
- type
49
- VariableName = string
50
- # # Used to store variables names in the database.
51
- VariableValue = string
52
- # # Used to store variables' values
53
-
54
48
using
55
49
db: DbConn # Connection to the shell's database
56
50
arguments: UserInput # The string with arguments entered by the user for the command
You can’t perform that action at this time.
0 commit comments