duplex
1.0.0
듀플렉스를 사용하면 Elixir 프로젝트 내에서 유사한 코드 블록을 검색 할 수 있습니다.
원격으로 (저장소 복제없이)
mix escript.install https://raw.githubusercontent.com/zirkonit/duplex/master/duplex
장소 상에서
mix do escript.build, escript.install
cd /path/to/project
~/.mix/escripts/duplex
:duplex deps in mix.exs 에 이중 def deps do
[ { :duplex , "~> 0.1.1" } ]
end mix deps.get
iex - S mix
Duplex . show_similar 자신의 값으로 다음 줄을 추가하여 config.exs 에서 기본값을 변경할 수 있습니다.
config :duplex , threshold: 7 # filter AST nodes with `node.length + node.depth >= threshold`
# Than lower threshold, than simpler nodes will be included.
# Optimal value is around 7-10. Default is 7.
config :duplex , dirs: [ "lib" , "config" , "web" ] # directories to search for Elixir source files
config :duplex , n_jobs: 4 # number of threads