sane-fmt 0.18.1

Opinionated code formatter for TypeScript and JavaScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod output_kind;

use clap::Parser;
use std::path::PathBuf;

#[derive(Debug, Parser)]
#[clap(name = "sane-fmt-export-json-config", rename_all = "kebab")]
pub struct CliOpt {
    /// File to write to
    /// [default: stdout]
    #[clap(long, short = 'o')]
    pub output: Option<PathBuf>,

    /// Type of config
    #[clap(name = "TYPE", value_enum)]
    pub kind: output_kind::OutputKind,
}