Skip to content

Commit

Permalink
refactor: moved OptionValue type to types module
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 9b77c0a56b66b6aedc2e3d43f413907d5c828111f506261e3a1db0479d6bd4fd
  • Loading branch information
thindil committed Oct 17, 2024
1 parent bb34b2e commit c644f84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/options.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ const optionsCommands: seq[string] = @["list", "set", "reset"]
type
OptionName* = string
## Used to store options names in the database.
OptionValue* = string
## Used to set or get the option's values
using
db: DbConn # Connection to the shell's database
optionName: OptionName # The name of option to get or set
Expand Down
2 changes: 2 additions & 0 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type
content*: string
plugin*: string
`template`*: bool
OptionValue* = string
## Used to set or get the option's values
OptionValType* = enum
## Used to set the type of option's value
integer, float, boolean, none, historysort, natural, text, command, header, positive
Expand Down

0 comments on commit c644f84

Please sign in to comment.