Git Product home page Git Product logo

Comments (5)

robinandeer avatar robinandeer commented on July 18, 2024

Probably, but I think that was in Slack or something.

I think this is a good and logical idea! I would add that is great to sync up command line options with the config file. This way Click provides the opportunity to set up defaults for the commands automatically 😄

The top level would then be options available for the root command (group)

from taca.

guillermo-carrasco avatar guillermo-carrasco commented on July 18, 2024

that sounds good :) Is this what you're referring to?

from taca.

robinandeer avatar robinandeer commented on July 18, 2024

Great, default_map is exactly what I mean!

Implementation example:
https://github.com/robinandeer/chanjo/blob/master/chanjo/cli.py#L52

How the chanjo config looks like:

# chanjo config

dialect = "sqlite"
db = "/home/vagrant/demo/coverage.sqlite"

[annotate]
cutoff = 10

[report]
panel = "/home/vagrant/demo/dbCMMS.v1.1.hgnc.txt"
panel_caption = "dbCMMS v1.1"
port = 5000
host = "0.0.0.0"

from taca.

guillermo-carrasco avatar guillermo-carrasco commented on July 18, 2024

that's neat, tack Robin!

from taca.

guillermo-carrasco avatar guillermo-carrasco commented on July 18, 2024

Done

from taca.

Related Issues (20)

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.