From 1697e2a0c352fa2010691ecb7a77bc2e4420b8c2 Mon Sep 17 00:00:00 2001 From: thindil Date: Tue, 15 Oct 2024 05:33:21 +0000 Subject: [PATCH] refactor: added some new types FossilOrigin-Name: c0a70fcc790c3c1ec26d28fd572f165195ca5ff925377e30f01047ae5b14fcf8 --- src/types.nim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/types.nim b/src/types.nim index 0d8cc15d..bfcc9397 100644 --- a/src/types.nim +++ b/src/types.nim @@ -79,6 +79,12 @@ type ## Used to store aliases names in tables and database. AliasesList* = OrderedTable[AliasName, int] ## Used to store the available aliases in the selected directory + AliasCommands* = string + ## Used to store an alias' commands in tables and database. + AliasOutput* = string + ## Used to store the location of alias' output in tables and database. + AliasDescription* = string + ## Use to store an alias' description in tables and database. Alias* {.tableName: "aliases".} = ref object of Model ## Data structure for the shell's alias ## @@ -89,12 +95,12 @@ type ## * description - the description of the alias, showed on the list of aliases ## or in the alias information ## * output - where to redirect the output of the alias' commands - name* {.unique.}: string + name* {.unique.}: AliasName path*: Path recursive*: bool - commands*: string - description*: string - output*: string + commands*: AliasCommands + description*: AliasDescription + output*: AliasOutput ColumnAmount* = distinct Natural ## Used to store length or amount of terminal's characters columns CompletionType* = enum