nushell / nufmt

MIT License
64 stars 7 forks source link

Reworking `nufmt` #7

Closed AucaCoyan closed 1 year ago

AucaCoyan commented 1 year ago

Hi!

I still have to resolve some issues, and tests and other things, that's why this is still a draft

fdncred commented 1 year ago

Thanks. Looks good so far. Just ping me when you're ready for a review.

fdncred commented 1 year ago

There's also a work-in-progress style guide here https://github.com/nushell/nushell.github.io/pull/904

AucaCoyan commented 1 year ago

Hello! I'm doing some progress. It is still quite messy, and with a lot of TODOs. I managed to:

I still have to:

To resolve some specific questions, I will head for the nushell discord. Anyone is welcome to participate!

amtoine commented 1 year ago

@AucaCoyan is there at least an nufmt we can run?

if it's the case, i'd vote to land this and address the missing points in follow up PRs :relieved:

AucaCoyan commented 1 year ago

is there at least an nufmt we can run?

if it's the case, i'd vote to land this and address the missing points in follow up PRs 😌

Yes! You can clone the repo and run cargo run -- folder\your-file.nu

or, if you want the trace log, RUST_LOG="trace" cargo run -- folder\your-file.nu

fdncred commented 1 year ago

I'm fine with landing this as a step in the right direction, with a mind to keep iterating on it until we get it to where we want it to be.

AucaCoyan commented 1 year ago

Ok! I will keep working, for sure! I will mark this PR to review and submit issues to point the places to improve / fix

fdncred commented 1 year ago

nice initial work!