Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ members = [
"crates/primitives/",
"crates/script-sequence/",
"crates/test-utils/",
"crates/cli-markdown/",
]
resolver = "2"

Expand Down Expand Up @@ -255,6 +256,7 @@ forge-script-sequence = { path = "crates/script-sequence" }
foundry-cheatcodes = { path = "crates/cheatcodes" }
foundry-cheatcodes-spec = { path = "crates/cheatcodes/spec" }
foundry-cli = { path = "crates/cli" }
foundry-cli-markdown = { path = "crates/cli-markdown" }
foundry-common = { path = "crates/common" }
foundry-common-fmt = { path = "crates/common/fmt" }
foundry-config = { path = "crates/config" }
Expand Down
2 changes: 2 additions & 0 deletions crates/anvil/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use foundry_cli::utils;
pub fn run() -> Result<()> {
setup()?;

foundry_cli::opts::GlobalArgs::check_markdown_help::<Anvil>();

let mut args = Anvil::parse();
args.global.init()?;
args.node.evm.resolve_rpc_alias();
Expand Down
2 changes: 2 additions & 0 deletions crates/cast/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ use std::time::Instant;
pub fn run() -> Result<()> {
setup()?;

foundry_cli::opts::GlobalArgs::check_markdown_help::<CastArgs>();

let args = CastArgs::parse();
args.global.init()?;
args.global.tokio_runtime().block_on(run_command(args))
Expand Down
2 changes: 2 additions & 0 deletions crates/chisel/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use yansi::Paint;
pub fn run() -> Result<()> {
setup()?;

foundry_cli::opts::GlobalArgs::check_markdown_help::<Chisel>();

let args = Chisel::parse();
args.global.init()?;
args.global.tokio_runtime().block_on(run_command(args))
Expand Down
20 changes: 20 additions & 0 deletions crates/cli-markdown/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "foundry-cli-markdown"
description = "Generate Markdown documentation for clap CLIs"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[lints]
workspace = true

[dependencies]
clap = { version = "4", features = ["env"] }

[dev-dependencies]
clap = { version = "4", features = ["derive"] }
pretty_assertions = "1"
Loading
Loading