git.delta.rocks / jrsonnet / refs/commits / b9d891c46e9e

difftreelog

fix allow to disable hard tabs

zwltwwqoYaroslav Bolyukin2026-08-31parent: #7d81a16.patch.diff
in: master

1 file changed

modifiedcmds/jrsonnet-fmt/src/main.rsdiffbeforeafterboth
5 process,5 process,
6};6};
77
8use clap::Parser;8use clap::{ArgAction, Parser};
9use jrsonnet_formatter::{FormatOptions, format};9use jrsonnet_formatter::{FormatOptions, format};
1010
11#[derive(Parser)]11#[derive(Parser)]
27 /// Number of spaces to indent with27 /// Number of spaces to indent with
28 #[arg(long, default_value = "4")]28 #[arg(long, default_value = "4")]
29 indent: u8,29 indent: u8,
30 /// Force hard tab for indentation30 /// Force soft tab (`indent` spaces) for indentation
31 #[arg(long, default_value = "true")]31 #[arg(long = "no-use-tabs", action = ArgAction::SetFalse)]
32 use_tabs: bool,32 use_tabs: bool,
33 /// Max formatted source width33 /// Max formatted source width
34 #[arg(long, default_value = "100")]34 #[arg(long, default_value = "100")]