Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document nixf-tidy #497

Closed
mightyiam opened this issue May 16, 2024 · 2 comments
Closed

document nixf-tidy #497

mightyiam opened this issue May 16, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@mightyiam
Copy link

Thank you for nixd and nixf-tidy.

I want to use nixf-tidy to lint my project, both locally and in GitHub Actions.

But I couldn't find any documentation for this.

Running the nixf-tidy command seems to run a process that never exits and does not provide output.

I did find the https://github.com/inclyc/nixf-tidy-action repo, but it is not via a GitHub Action that I would like to use it.

@inclyc
Copy link
Member

inclyc commented May 16, 2024

Running the nixf-tidy command seems to run a process that never exits and does not provide output.

For now it reads the standard input as the source file. You may use it like:

cat somefile.nix | nixf-tidy

The result is JSON format and may not suitable for human reading. And currently it does not have a command line UI. The tooling itself is designed to be invoked by some "UI" tools, e.g. a language server, or github action, or github bot.

I want to use nixf-tidy to lint my project, both locally and in GitHub Actions.

For locally usage nixf-tidy shares the frontend of nixd, using nixd is effectively using nixf-tidy locally.

But I couldn't find any documentation for this.

Yes, there should be some documentation.

@inclyc inclyc added the documentation Improvements or additions to documentation label May 16, 2024
@inclyc inclyc closed this as completed in 02b17ab May 23, 2024
@mightyiam
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants