Skip to content

Commit

Permalink
🎈 perf: 优化变量为常量
Browse files Browse the repository at this point in the history
并添加类型提示
  • Loading branch information
2439905184 committed Aug 4, 2022
1 parent cb0e25f commit 4f84cfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions gen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import system/io
#是否启用详细输出
var verbose_enabled = false
var localDependencies:seq[string]
var remoteDependencies:seq[string]
var pluginDir = "/plugin"
var localDepDir = "/dependencies/local"
var remoteDepDir = "/dependencies/remote"
var outPutDir = "/output"
const pluginDir = "/plugin"
const localDepDir = "/dependencies/local"
const remoteDepDir = "/dependencies/remote"
const outPutDir = "/output"

#插件的文件名字 xxx.aar
proc get_plugin(path:string):string =
Expand Down
2 changes: 1 addition & 1 deletion init.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import os
import system
import std/json
var cmd = commandLineParams()
var rootDir = cmd[0]
var rootDir:string = cmd[0]
createDir(rootDir)
createDir(rootDir & "/dependencies")
createDir(rootDir & "/dependencies/local")
Expand Down

0 comments on commit 4f84cfc

Please sign in to comment.