A Toy CLI Tool to search code line . Honestly, the error process is not good, and the code isn't clean. Just a toy tool for practicing rust.
Usage
- This search the symbol
main
in the file./src/main.rs
with languagerust
and set search_symbol totrue
.
search_code -k "main" -p ./src/main.rs -l rust -s true
- Also, if just provide a directory, it will search all files in the directory.
search_code -k "main" -p ./src -l rust -s true
- If set
-s
tofalse
, just searchkey
in the file or the directory.
search_code -k "main" -p ./src -l rust -s false