Skip to content

Ability to filter content by golie clone#38

Merged
redhatrises merged 1 commit into
rolieup:masterfrom
isimluk:filter
Aug 20, 2020
Merged

Ability to filter content by golie clone#38
redhatrises merged 1 commit into
rolieup:masterfrom
isimluk:filter

Conversation

@isimluk

@isimluk isimluk commented Aug 17, 2020

Copy link
Copy Markdown
Member
golie clone --debug --filter rhel8 --dir ./my_content https://atopathways.redhatgov.io/compliance-as-code/scap/feed.json
DEBUG Running client in DEBUG mode                 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/feed.json 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-firefox-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-jre-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp3-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-ocp4-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhcos4-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel6-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel7-xccdf.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-cpe-dictionary.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-cpe-oval.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-ds-1.2.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-ds.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-ocil.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-oval.xml 
INFO Downloading https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhel8-xccdf.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-cpe-dictionary.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-cpe-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-ds-1.2.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-ds.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-ocil.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-oval.xml 
DEBUG Skipping (filtered out) download of https://atopathways.redhatgov.io/compliance-as-code/scap/ssg-rhosp13-xccdf.xml 

Comment thread pkg/rolie/clone.go
}
return nil
if !f.filtered(entry) {
log.Debugf("Skipping (filtered out) download of %s", entry.Link[0].Href)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isimluk what do we mean by "Skipping (filtered out) download" ? Are we only filtering on urls? If so, I am not sure that filtering is the right sub command name.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We skip download of rolie entries that do not match the filter that is provided.

I am definitely open to use different language if you can propose such.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have anything good especially since regex is used... so for now, filter it is!

Comment thread cmd/golie/clone/clone.go Outdated
Comment thread pkg/rolie/clone.go Outdated
@redhatrises redhatrises merged commit a5e3451 into rolieup:master Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants