Skip to content

Commit

Permalink
refactor: added some new types
Browse files Browse the repository at this point in the history
FossilOrigin-Name: c0a70fcc790c3c1ec26d28fd572f165195ca5ff925377e30f01047ae5b14fcf8
  • Loading branch information
thindil committed Oct 15, 2024
1 parent 3b71582 commit 1697e2a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand All @@ -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
Expand Down

0 comments on commit 1697e2a

Please sign in to comment.