Giter VIP home page Giter VIP logo

Comments (6)

atugushev avatar atugushev commented on August 12, 2024 1

Make sense. Thanks for the help!

from toml-sort.

pappasam avatar pappasam commented on August 12, 2024

Yes, I'm very interested in this feature! Thanks for the issue and I look forward to the PR 👍

from toml-sort.

atugushev avatar atugushev commented on August 12, 2024

Could you help me with a couple of edge cases? What would be the output of the following commands?

  1. toml-sort good1.toml good2.toml
  2. toml-sort good.toml bad.toml --check
  3. toml-sort foo.toml bar.toml --output=-

where good file is sorted, bad is not sorted.

from toml-sort.

pappasam avatar pappasam commented on August 12, 2024

To keep things simple, I think multiple arguments should only be supported if the --in-place or --check options are are used.

In all other cases, we should accept only 1 argument.

from toml-sort.

pappasam avatar pappasam commented on August 12, 2024

You're probably already looking into this, but in case you're not, I'd pay special attention to click's variadic arguments: https://click.palletsprojects.com/en/7.x/arguments/#variadic-arguments

from toml-sort.

atugushev avatar atugushev commented on August 12, 2024

Thanks for suggestions! Please review #8 when you have time.

from toml-sort.

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.