cat - Unix Command line tool built for John Crickett's Coding Challenge.
First, make sure you have Bazel installed.
bazel build :ccat
bazel run :ccat -- testdata/test.txt
To read from stdin:
head -n1 testdata/test.txt | ./bazel-bin/ccat -
Printing line numbers:
bazel run :ccat -- -n testdata/test.txt
bazel test --test_output=all :ccat_test
- Bazel as the build tool.
- Google Test for testing.
- Bazel Compile Commands Extractor to support autocompletion in Neovim and IDEs.