Skip to content

Commit

Permalink
Add missing help message to experimental backends (#16403)
Browse files Browse the repository at this point in the history
Missing from #15633.
  • Loading branch information
Eric-Arellano authored Aug 4, 2022
1 parent 3791133 commit 671cf3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/pants/backend/codegen/soap/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Target,
TargetFilesGenerator,
Targets,
generate_multiple_sources_field_help_message,
)
from pants.util.logging import LogLevel

Expand Down Expand Up @@ -55,6 +56,9 @@ class WsdlSourceTarget(Target):
class WsdlSourcesGeneratingSourcesField(MultipleSourcesField):
default = ("*.wsdl",)
expected_file_extensions = (".wsdl",)
help = generate_multiple_sources_field_help_message(
"Example: `sources=['utils.wsdl', 'models/*.wsdl', '!ignore_me.wsdl']`"
)


class WsdlSourcesGeneratorTarget(TargetFilesGenerator):
Expand Down
4 changes: 4 additions & 0 deletions src/python/pants/backend/javascript/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
SingleSourceField,
Target,
TargetFilesGenerator,
generate_multiple_sources_field_help_message,
)

JS_FILE_EXTENSIONS = (".js",)
Expand Down Expand Up @@ -44,6 +45,9 @@ class JSSourceTarget(Target):

class JSSourcesGeneratorSourcesField(JSGeneratorSourcesField):
default = tuple(f"*{ext}" for ext in JS_FILE_EXTENSIONS)
help = generate_multiple_sources_field_help_message(
"Example: `sources=['utils.js', 'subdir/*.js', '!ignore_me.js']`"
)


class JSSourcesGeneratorTarget(TargetFilesGenerator):
Expand Down
4 changes: 4 additions & 0 deletions src/python/pants/backend/swift/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
SingleSourceField,
Target,
TargetFilesGenerator,
generate_multiple_sources_field_help_message,
)

SWIFT_FILE_EXTENSIONS = (".swift",)
Expand Down Expand Up @@ -44,6 +45,9 @@ class SwiftSourceTarget(Target):

class SwiftSourcesGeneratorSourcesField(SwiftGeneratorSourcesField):
default = tuple(f"*{ext}" for ext in SWIFT_FILE_EXTENSIONS)
help = generate_multiple_sources_field_help_message(
"Example: `sources=['utils.swift', 'subdir/*.swift', '!ignore_me.swift']`"
)


class SwiftSourcesGeneratorTarget(TargetFilesGenerator):
Expand Down

0 comments on commit 671cf3e

Please sign in to comment.