Skip to content

How to select a ReqIF definition #35

Closed

Description

@reqTibi

I have a question: how to specify for reqif_io a certain ReqIF definition, if there more than one, for export. Currently all definitions will be exported.

Activity

  1. barny commented on Mar 10, 2023

    @barny
    Member

    If you don't specify a name then all definitions in the project are exported. If you want one or more specific definitions exported provide their name(s) in the exact capitalisation separated by spaces - if the name includes space then put " around the name.

    It's possible to specify a regular expression pattern for the name and it will export all that match. A Regular expression has any of ^$?*[].+() in it and unless you use ^ or $ will match anywhere in the name. If you want to find out more do some goggling for regular expressions, and the code is around lines 274-299 in the current reqif_io.py.

    It's only an example, you've got the source code can adapt/extend it to meet your needs.

  2. locked and limited conversation to collaborators on Mar 10, 2023
  3. converted this issue into a discussion #36 on Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions