TOWNCRIER(1)

πŸ“¦
version 25.8.0 Β· 3 versions
, in ubuntu stonking

πŸ’– TOWNCRIER πŸ’–

okay so bestie, welcome to the General Commands Manual page for towncrier, and honestly? this one's a bop. let's get into it.


✨ NAME ✨

towncrier β€” manage a useful, summarised news file for your project 🫢


🌸 SYNOPSIS 🌸

towncrier … [--config CONFIG_FILE] [--dir FRAGMENTS_DIR] …

towncrier [build] [--name PROJECT_NAME] [--version RELEASE_VERSION]
          [--date RELEASE_DATE] [--draft] [--yes] [--keep]

towncrier create [--content CONTENT] [--edit|--no-edit] FRAGMENT_FILE

towncrier check [--compare-with GIT_COMMIT]

towncrier --help
towncrier --version

πŸ¦‹ DESCRIPTION πŸ¦‹

so towncrier is a utility to produce useful, summarised news files for your project. the whole vibe is that instead of reading the VCS history to produce it, or having one single file which developers all write to (chaos, honestly πŸ’€), towncrier reads "news fragments" which contain information useful to end users. it's giving organization. it's giving main character energy. periodt.


πŸ’… OPTIONS πŸ’…

  • --config CONFIG_FILE β€” use the specified CONFIG_FILE to configure program behaviour. (default: towncrier.toml or, if that does not exist, pyproject.toml) πŸ‘‘
  • --dir FRAGMENTS_DIR β€” manage news fragments in the directory FRAGMENTS_DIR, relative to the project directory. (default: newsfragments) πŸŽ€
  • -v, --version β€” emit the program version. 🏷️
  • -h, --help β€” describe how to use the program. πŸ™‹β™€οΈ

🌈 COMMANDS 🌈

🧚 build

[build] [--name PROJECT_NAME] [--version RELEASE_VERSION]
[--date RELEASE_DATE] [--draft] [--yes] [--keep]

okay so this is the big one. it discovers all the news fragments in FRAGMENTS_DIR, and collates them. it renders them as a news document for project PROJECT_NAME released on RELEASE_DATE as version RELEASE_VERSION. then, it appends the generated news document to the configured news file, uses Git to stage the resulting file, and finally prompts the user for whether to delete the news fragment files. πŸ”₯

(or, if --draft is specified: it emits the news file text to the standard error stream, and does not change any files. tasteful.)

if --yes is specified, it omits the prompt and assumes "yes" to delete news fragment files. if --keep is specified, it omits the prompt and assumes "no" to delete news fragment files. simple as. ✨

πŸ’œ create

create [--content CONTENT] [--edit|--no-edit] FRAGMENT_FILE

create a news fragment with filename FRAGMENT_FILE. if --content is specified, populate the news fragment file with text content CONTENT. if --edit is specified, launch the default text editor with the news fragment file. ✍️

πŸ“ check

check [--compare-with GIT_COMMIT]

compare the current news file and fragments to those in the Git commit GIT_COMMIT (default: origin/master); then, if the news file is the same, report any additional fragments found. detective mode, lowkey. πŸ”


😭 REPORTING BUGS

please report any bugs using the Towncrier project issue tracker. we're listening, we promise 🫢


this manual page is Copyright Β© 2021–2024 Ben Finney and SΓ©rgio de Almeida Cipriano Junior, and is freely available to anyone under certain conditions. see the source document for details. βš–οΈ


πŸ’– SEE ALSO

the Towncrier project upstream home page. go say hi 🌸


not me writing the whole thing and then still needing you to actually read the docs, iykyk πŸ’€

and that's the whole page, bestie β€” towncrier, rendered on 2022-04-26, from the TOWNCRIER(1) source. slay, ate, no cap βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from
  • ubuntu stonking: towncrier 25.8.0-2 Β· MIT
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms