X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/17955bba9f852c8264f1bfdf8259f19d4aeefd2a..6f161e0bd890c7289b54ad8ccfd5b73a416ea478:/src/lib.nim diff --git a/src/lib.nim b/src/lib.nim index c737f02..8315473 100644 --- a/src/lib.nim +++ b/src/lib.nim @@ -8,6 +8,7 @@ import std/[terminal], strtabs, strutils, + tables, uri, xmltree @@ -15,7 +16,8 @@ import config type SearchResult* = tuple[title: string, url: string] - CommandLineOptions* = tuple[searchQuery: string, musicOnly: bool, feelingLucky: bool, fullScreen: bool] + Options* = Table[string, bool] + CommandLineOptions* = tuple[searchQuery: string, options: Options] let processOptions = {poStdErrToStdOut, poUsePath}