bdep-clean(1)
π bdep-clean(1) π
okay bestie, welcome to bdep-clean, straight outta the General Commands Manual section of the bdep fam. sit down, grab a boba, we're cleaning some build configs and we're gonna have fun doing it π§Ήβ¨
β¨ NAME β¨
bdep-clean β clean project in build configurations π§Ό
π¦ SYNOPSIS π¦
bdep clean [options] [pkg-spec] [cfg-spec] [cfg-var...]
cfg-spec = (@cfg-name | --config|-c cfg-dir)... | --all|-a
pkg-spec = (--directory|-d pkg-dir)... | prj-spec
prj-spec = --directory|-d prj-dir
like, it's giving "I have a command and I know how to use it" π
πΈ DESCRIPTION πΈ
so the clean command cleans the project packages in one or more build configurations. no cap. and if you want it to go deeper, you can clean the immediate or all dependencies of the project packages by passing --immediate|-i or --recursive|-r respectively. obsessed. π
underneath, clean executes the bpkg-pkg-clean(1) command, which itself is honestly not much more than the build system clean operation (peep b(1) for the details, iykyk). so the main character energy of this command is that it lets you refer to build configurations by their names, refer to project packages implicitly via the current working directory, and clean dependencies. iconic behaviour, honestly. π
if no project or package directory is specified, then the current working directory is assumed β like, it just knows. and if no configuration is specified, then the default configurations are assumed. see bdep-projects-configs(1) for the whole rundown on specifying projects and configurations. the optional cfg-var... are the additional configuration variables to pass to the build system. π
π CLEAN OPTIONS π
--immediate|-iβ also clean immediate dependencies. it's giving thorough β¨--recursive|-rβ also clean all dependencies, recursively. go all the way down, bestie, no half measures π--all|-aβ use all build configurations. every single one. π--config|-cdir β specify the build configuration as a directory.--directory|-ddir β assume project/package is in the specified directory rather than in the current working directory. π--config-name|-nname β specify the build configuration as a name.--config-idnum β specify the build configuration as an id.
π COMMON OPTIONS π
these are all summarised below, and the full lore drop lives in bdep-common-options(1). go read it, bestie, it's a vibe. π
-vβ print essential underlying commands being executed.-Vβ print all underlying commands being executed. every last one, we love a transparent king π--quiet|-qβ run quietly, only printing error messages. silent mode activated π€«--verboselevel β set the diagnostics verbosity to level between0and6.--stdout-formatformat β representation format to use for printing to stdout.--jobs|-jnum β number of jobs to perform in parallel. multitasking slay π--progressβ display progress indicators for long-lasting operations, such as network transfers, building, etc.--no-progressβ suppress progress indicators for long-lasting operations, such as network transfers, building, etc.--diag-colorβ use color in diagnostics. π--no-diag-colorβ don't use color in diagnostics.--bpkgpath β the package manager program to be used for build configuration management.--bpkg-optionopt β additional option to be passed to the package manager program.--buildpath β the build program to be used to build packages.--build-optionopt β additional option to be passed to the build program.--curlpath β the curl program to be used for network operations.--curl-optionopt β additional option to be passed to the curl program.--pagerpath β the pager program to be used to show long text.--pager-optionopt β additional option to be passed to the pager program.--options-filefile β read additional options from file.--default-optionsdir β the directory to load additional default options files from.--no-default-optionsβ don't load default options files.
π«Ά DEFAULT OPTIONS FILES π«Ά
check bdep-default-options-files(1) for the whole overview of the default options files, bestie. for the clean command, the search start directory is the project directory. π
these options files get searched for in each directory and, if found, loaded in the order listed:
bdep.options
bdep-clean.options
and bestie, listen β the following clean command options cannot be specified in the default options files:
--directory|-d
π¨ like fr fr, don't try it. it's not happening.
π BUGS π
found a bug? send bug reports to the users@build2.org mailing list. we're listening, we promise π«Ά
β COPYRIGHT β
Copyright (c) 2014-2024 the build2 authors.
Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.
and that's the whole page, bestie!! π this lil' slice of bdep 0.17.0 dropped way back in June 2024, and it's still serving. stay clean, stay iconic, mwah πβ¨
π¦ where this page comes from
- fedora 43: bdep 0.17.0-5.fc43 Β· MIT
- fedora 44: bdep 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bdep 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms