Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
docs: auto generated CLI reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jul 9, 2023
1 parent 8f46efb commit 144de4b
Show file tree
Hide file tree
Showing 9 changed files with 578 additions and 124 deletions.
7 changes: 3 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tests_macros = { path = "./crates/tests_macros" }

# Crates needed in the workspace
bitflags = "2.3.1"
bpaf = { version = "0.9.1", features = ["derive"] }
bpaf = { version = "0.9.1", git = "https://github.com/pacak/bpaf", branch = "md", features = ["derive"] }
countme = "3.0.1"
dashmap = "5.4.0"
indexmap = "1.9.3"
Expand Down
3 changes: 3 additions & 0 deletions crates/rome_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ rome_js_formatter = { workspace = true }
rome_json_formatter = { workspace = true }
rome_json_parser = { workspace = true }
tokio = { workspace = true, features = ["io-util"] }

[features]
docgen = ["bpaf/docgen"]
2 changes: 0 additions & 2 deletions crates/rome_cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ pub(crate) mod version;

#[derive(Debug, Clone, Bpaf)]
#[bpaf(options, version(VERSION))]
/// Rome CLI
///
/// Rome official CLI. Use it to check the health of your project or run it to check single files.
pub enum RomeCommand {
/// Shows the Rome version information and quit
Expand Down
4 changes: 4 additions & 0 deletions crates/rome_service/src/configuration/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub struct FormatterConfiguration {
pub format_with_errors: Option<bool>,

/// The indent style.
///
/// ```shell
/// rome format --indent-style=tab
/// ```
#[serde(skip_serializing_if = "Option::is_none")]
#[bpaf(long("indent-style"), argument("tab|space"), optional)]
pub indent_style: Option<PlainIndentStyle>,
Expand Down
Loading

0 comments on commit 144de4b

Please sign in to comment.