nushell / nufmt

MIT License
74 stars 10 forks source link
# `nufmt`: the nushell formatter [![MIT licensed][mit-badge]][mit-url] [![Discord chat][discord-badge]][discord-url] [![CI on main][ci-badge]][ci-url] [![nushell version][nushell-badge]][nushell-url] [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg?color=brightgreen [mit-url]: https://github.com/nushell/nufmt/blob/main/LICENSE [discord-badge]: https://img.shields.io/discord/678763474494423051?logo=discord&label=discord&color=brightgreen [discord-url]: https://discord.gg/NtAbbGn [ci-badge]: https://github.com/nushell/nufmt/actions/workflows/main.yml/badge.svg [ci-url]: https://github.com/nushell/nufmt/actions/workflows/main.yml [nushell-badge]: https://img.shields.io/badge/nushell-v0.88.1-green [nushell-url]: https://crates.io/crates/nu

Table of contents

Status

This project is still very much in beta. Expect bugs, unconsistent behaviour. Do not use in productive nushell scripts!

Some of the outputs deletes comments, break the functionality of the script or doesn't format at all.

To use the formatter, test it first and use it with caution!.

Usage

If you still want to use it, or test it to contribute, this is the --help.

nufmt [OPTIONS] [FILES] ...

Files

Files are a list of files. It cannot be used combined with --stdin. You can format many files with one command!. For example:

nufmt my-file1.nu my-file2.nu my-file3.nu

Options

Contributing

We have a contribution guide. If you still have doubts, you can mention @AucaCoyan who is active on this repo.