Skip to content

Commit

Permalink
refactor: added some types and changed types of fields for Completion…
Browse files Browse the repository at this point in the history
… object

FossilOrigin-Name: 7ab1032016911f394898c24789858787819a7118dd4428d32a3a7f663d1c5270
  • Loading branch information
thindil committed Oct 21, 2024
1 parent c4348be commit 735261b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,20 @@ type
dirs = "Directories only", files = "Files only",
dirsfiles = "Directories and files", commands = "Commands",
custom = "Custom", none = "Completion for the selected command should be disabled"
CompletionCommand* = string
## Used to store the command to which completion will be added
CompletionValues* = string
## Used to store the values of the selected completion
Completion* {.tableName: "completions".} = ref object of Model
## Data structure for the shell's commands' completion
##
## * command - the command for which the completion is set
## * cType - the type of completion for the command
## * values - the proper values of completion if the completion's type is
## set to the custom type
command* {.unique.}: string
command* {.unique.}: CompletionCommand
cType*: CompletionType
cValues*: string
cValues*: CompletionValues
Plugin* {.tableName: "plugins".} = ref object of Model
## Data structure for the shell's plugin
##
Expand Down

0 comments on commit 735261b

Please sign in to comment.