Closed aspiers closed 10 months ago
I like it. It'll be on file paths rather than the remapped import names, though
There is no exclude option, yet, but there is an implicit include using the aFile
option.
The aFile
and bFile
options were introduced to diff files that had been renamed. But you can just specify the aFile
and the diff will be done on that file. For example
sol2uml diff 0x1091588Cc431275F99DC5Df311fd8E1Ab81c89F3 0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c --aFile contracts/governance/Governable.sol
Amazing, thanks!
@naddison36 Just looked into this and realised that the aFile
trick doesn't really address my use case, since I want to generate diffs which span many files, but exclude library files (typically just those matching @openzeppelin/*
). Please would it be possible to reopen this to track the idea of adding an exclude option in the future?
Another feature request, this time for
sol2uml diff
!It would be great if we could do something like
sol2uml diff --exclude='@openzeppelin/*'
to exclude files from the diff matching a particular path pattern.