Skip to main content
Version: 2.6 (deprecated)

tailor


pants tailor [args]

Auto-generate BUILD file targets for new source files.

Backend: ``

Config section: [tailor]

Basic options

None

Advanced options

alias_mapping

--tailor-alias-mapping="{'key1': val1, 'key2': val2, ...}"
PANTS_TAILOR_ALIAS_MAPPING
pants.toml
[tailor.alias_mapping]
key1 = val1
key2 = val2
...
default: {}

A mapping from standard target type to custom type to use instead. The custom type can be a custom target type or a macro that offers compatible functionality to the one it replaces (see https://www.pantsbuild.org/v2.6/docs/macros).

build_file_indent

--tailor-build-file-indent=<str>
PANTS_TAILOR_BUILD_FILE_INDENT
pants.toml
[tailor]
build_file_indent = <str>
default:

The indent to use when auto-editing BUILD files.

Deprecated options

None

None