Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Usage: implement supported_filetypes #53

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/Usage-cli_filetypes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
method: cli
scope: meta-only
command: parse --type=example --summary {{ file_path }}
supported_filetypes:
- example
12 changes: 10 additions & 2 deletions schemas/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,22 @@ classes:
- >-
For `method: python`, a parametrized function invocation which
should be available after installing and setting up the `Extractor`.
- The templated parameters which can be requested from the user
- >-
The templated parameters which can be requested from the user
are [described by the `UsageTemplate` class](UsageTemplate.md).
scope:
required: false
range: UsageScope
description: >-
Specification of extraction scope.

supported_filetypes:
required: false
multivalued: true
description: >-
An enumeration of the `FileType` that this `Usage` of an `Extractor`
supports, matching one or more of the `FileTypes` present in the
`supported_filetypes` slot of the `Extractor`. Defaults to all
`supported_filetypes` specified in the `Extractor` definition.

Installation:
description: >-
Expand Down
Loading