Skip to content

Commit

Permalink
chore: fixed nimalyzer errors
Browse files Browse the repository at this point in the history
FossilOrigin-Name: ccdb513c07df24894047be49c71a355b7b776856615cc73fc58ea9f09fe4bc7b
  • Loading branch information
thindil committed Oct 26, 2024
1 parent f107cb2 commit 88adb68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import std/[os, osproc, paths, parseopt, strutils, tables, terminal, unicode]
when compileOption(option = "profiler"):
import nimprof
# External modules imports
import ansiparse, contracts, nancy, termstyle
import ansiparse, contracts, nancy, nimalyzer, termstyle
import norm/sqlite
# Internal imports
import aliases, commands, commandslist, completion, constants, db, help,
Expand Down Expand Up @@ -396,6 +396,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect,
## The main procedure of the shell
body:
startLogging()
{.ruleOff: "objects".}
var
userInput: OptParser = initOptParser()
commandName, lastCommand: CommandName = ""
Expand All @@ -411,6 +412,7 @@ proc main() {.sideEffect, raises: [], tags: [ReadIOEffect, WriteIOEffect,
DirSep & "nish.db").Path
cursorPosition: Natural = 0
commands: ref Table[string, CommandData] = newTable[string, CommandData]()
{.ruleOn: "objects".}

# On Unix systems, load various users' configurations for shells
when not defined(windows):
Expand Down

0 comments on commit 88adb68

Please sign in to comment.