Adding a description file for FSL commands (called description_functions.json). This file is used to retrieve the "used" and "generatedBy" entities.
Example:
It allows entities to be specified by index (e.g. 1 or -1 for the last element), by parameter name (e.g. --output) and by slicing (e.g. 1:-1).
The script also adapts for commands like rm to the presence or absence of a parameter following it. Example rm -f sl?.png highres2standard2.png with the previous json description will retrieve in used: sl?.png and highres2standard2.png. If the command would have been simply rm sl?.png highres2standard2.png , the result would have been the same.
Note : this description file has been initialized but is incomplete and some commands are certainly wrong.
Extra activities indicated by wasInfluencedBy have been removed
derivedFrom has also been removed
The attributes of the activities have been commented on as they are not reliable at the moment.
The parser now ignores the Feat main script section.
This PR proposes improvements to the FSL parser:
description_functions.json
). This file is used to retrieve the "used" and "generatedBy" entities. Example:It allows entities to be specified by index (e.g.
1
or-1
for the last element), by parameter name (e.g.--output
) and by slicing (e.g.1:-1
).The script also adapts for commands like
rm
to the presence or absence of a parameter following it. Examplerm -f sl?.png highres2standard2.png
with the previous json description will retrieve inused
:sl?.png
andhighres2standard2.png
. If the command would have been simplyrm sl?.png highres2standard2.png
, the result would have been the same.Note : this description file has been initialized but is incomplete and some commands are certainly wrong.
wasInfluencedBy
have been removedFeat main script
section.