nicolasmesa / context-cli Goto Github PK
View Code? Open in Web Editor NEWCli tool to search with contexts
License: MIT License
Cli tool to search with contexts
License: MIT License
Ideally, the flags should work just like python slicing (not sure if -n
, --number
is the best flag name)
$ ctx ... -n '-5:' # returns the last 5 contexts
$ ctx ... -n ':10' # returns first 10 contexts
$ ctx ... -n '10:' # returns all contexts excluding the first 10
$ ctx ... -n '10:-5' # returns all contexts excluding the first 10 and the last 5
Even though there's good test coverage for the project, there should be integration tests that validate the output of the whole program and match it against an expected output.
Need to
Add support for compressed files (zip/gzip)
Currently ctx
supports Python3.6+. I know there's a few f-strings
that need to be ported to make it compatible with earlier versions. Not sure what else needs to happen to make it work.
This would include adding support for it in CI as well
We could print the file every line, before each context, before each file. Need to come up with good command line flags for all of those.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.