Coder Social home page Coder Social logo

context-cli's People

Contributors

nicolasmesa avatar

Watchers

 avatar  avatar

context-cli's Issues

Add integration tests

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

  • Create test files
  • Create test commands to run against those files
  • Run the test commands and manually verify the output to make sure it's correct. If it isn't, add a unit test to prevent any regressions.
  • Save the output of the commands.
  • Create a script to run all of the commands and verify that the outputs match.

Add support for earlier versions of Python3

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

add a flag to print the file name

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.

Add flag to limit the number of contexts in the output

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.