Skip to content

docs(book): document script Slang flags and init/audit/clean commands#317

Open
micprog wants to merge 1 commit into
masterfrom
docs
Open

docs(book): document script Slang flags and init/audit/clean commands#317
micprog wants to merge 1 commit into
masterfrom
docs

Conversation

@micprog

@micprog micprog commented Jun 15, 2026

Copy link
Copy Markdown
Member

Document the script command's Slang-based filtering options (--top, --trim-incdirs, --broken, --encrypted) in the command reference, and add entries for the previously undocumented init, audit, and clean commands so all subcommands are covered.

Document the `script` command's Slang-based filtering options
(--top, --trim-incdirs, --broken, --encrypted) in the command
reference, and add entries for the previously undocumented `init`,
`audit`, and `clean` commands so all subcommands are covered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@micprog micprog requested a review from fischeti June 15, 2026 15:19

@fischeti fischeti left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks for adding it to the documentation as well.

Comment thread book/src/commands.md

### Slang-based filtering (requires the `slang` feature)

When Bender is built with the `slang` feature (part of the default feature set), `script` can use the [Slang](https://github.com/MikePopoloski/slang) parser to trim the emitted file list and to control how it reacts to sources Slang cannot fully parse. These options work with every format:

@fischeti fischeti Jun 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe reword slightly to mention that the slang library is bundled with bender i.e. no need for a slang installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants