From c644f8464e0203d923e6a9ed8cc3954acb05af6e Mon Sep 17 00:00:00 2001 From: thindil Date: Thu, 17 Oct 2024 05:27:09 +0000 Subject: [PATCH] refactor: moved OptionValue type to types module FossilOrigin-Name: 9b77c0a56b66b6aedc2e3d43f413907d5c828111f506261e3a1db0479d6bd4fd --- src/options.nim | 2 -- src/types.nim | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.nim b/src/options.nim index 61b3d6bc..69075077 100644 --- a/src/options.nim +++ b/src/options.nim @@ -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 diff --git a/src/types.nim b/src/types.nim index bfcc9397..cf858e43 100644 --- a/src/types.nim +++ b/src/types.nim @@ -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