Comments (7)
Having a single CLI command is a good idea. We already do that for LibCST.
To keep it simple, the command should be named as fixit
and users can provide different sub-command, e.g.
- fixit run_rules
- fixit apply_fix
Why do you need both launch_cli
and main
rather than just a main
?
Then the console-script can point to cli.main:main
.
from fixit.
Your PRs are very welcome!
from fixit.
Your PRs are very welcome!
Thank you, Should I do in separate folder? i.e fixit/cli2/
from fixit.
Having a single CLI command is a good idea. We already do that for LibCST.
To keep it simple, the command should be named asfixit
and users can provide different sub-command, e.g.
- fixit run_rules
- fixit apply_fix
Why do you need both
launch_cli
andmain
rather than just amain
?
Then the console-script can point tocli.main:main
.
Yes, I can do that too. But, I want to parse arguments separately and TBH more modular. So this is one way I can think of.
Let me know if you have any other ideas.
from fixit.
Your PRs are very welcome!
Thank you, Should I do in separate folder? i.e
fixit/cli2/
How should I make PRs? because I need to change some existing files in each small PR for each sub-command, which might cause conflict.
from fixit.
Your PRs are very welcome!
Thank you, Should I do in separate folder? i.e
fixit/cli2/
How should I make PRs? because I need to change some existing files in each small PR for each sub-command, which might cause conflict.
I would just add a cli/main.py
and modify other files to add them to the new CLI while keeping their existing CLI works for backward compatibility.
One or multiple PRs are both fine to me.
from fixit.
Thank you.
from fixit.
Related Issues (20)
- Support LibCst's FullyQualifiedNameProvider
- Fixit cli doesn't return non-zero exit code upon exceptions - add --exit-non-zero / --exit-zero options HOT 2
- Mechanism for testing local plugins
- Support for #lint-ignore directives
- Support for "target version"
- Do something with lint rule tags
- CLI options to select/exclude lint rules
- Alternate output formats
- Allow interactive fixes with parallel multiprocessing
- Option to apply formatting after autofixes HOT 1
- User Guide section for writing lint rules
- Migration guide for users from v0.1.4 HOT 2
- Improve type checker integration with Pyre, Mypy HOT 1
- Tests fail with ValueError when using FullRepoManager
- no_assert_equals is incomplete HOT 1
- Update tests and contributor guide with docs generation
- Consider loading local rules from outside project config
- Config overrides load local rules from wrong path HOT 1
- Method to warmup cache for providers/rules in parent process before forking
- Fixit only applies a single autofix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fixit.