项目作者: e8kor

项目描述 :
CLI file content search tool
高级语言: Scala
项目地址: git://github.com/e8kor/assessment-searcher.git
创建时间: 2018-10-22T15:47:17Z
项目社区:https://github.com/e8kor/assessment-searcher

开源协议:

下载


Searcher

Application serves single purpose of scanning files content

Design

Project uses Hexagon architecture as its main pattern. Actual trait implementation is not used inside of app, instead preferred way to access its implementation is via companion object. Command is handy sealed structure that safely parse raw input. Application preforms simple tokenization, so words like home?, home., home considered as same word, logic applied for both scanned files and input words.

Assembly

To prepare new release sbt requires to be in path. Newly assembled distributive located under

  1. #### Assembly Command:
  2. ```sbt assembly

How To

Command to run application:

  1. java -jar app.jar /path/to/search/root

Usage:

Reserved words:

  • :quit exiting application

Files home location must be passed as a first argument. Path must be or directory or single file.

Strings separated by whitespace considered as list of argument to search for.

Single word argument must contain no spaces.