Skip to content

Instantly share code, notes, and snippets.

@bwiggs
Created February 19, 2016 23:02
Show Gist options
  • Save bwiggs/151a02b50474a7db88ff to your computer and use it in GitHub Desktop.
Save bwiggs/151a02b50474a7db88ff to your computer and use it in GitHub Desktop.
Find unused directives
#!/usr/bin/env bash
directives=(app-title appetite-toolbar appointment-btn appointment-label appointments-widget auto-focus checklist-filter-group click-to-edit company-card company-list company-logo company-tiles company-typeahead company-typeahead-card compile connection-btn connection-count connections-widget conversation-thread document-click-listener ev-validated-field ev-validated-form evsr-ensure-url expandable-section filter-box guide-member-list iconic industries-selector industry-item industry-sidebar-filter-group inline-login invite-widget line-break-title load-more-button market-appetite-company market-appetite-header market-appetite-product market-appetite-search-form market-appointment-btn market-company market-company-logo market-search-filters market-search-tuning mcglades-search-result member-card member-location member-title member-typeahead member-typeahead-card milestone-nav most-recent-widget navbar-collapse-mobile ng-enter on-finish-render policy-card policy-list product-label product-picker products-selector result-banner risk-card risk-header risk-result risk-result-confirmation search-box search-cta search-dropdown sizes-selector states-selector suggest-update-launcher typeahead-trigger upload-attachments us-map welcome)
for i in ${directives[@]}; do
ag -l "${i}" public > /dev/null || echo "${i} not found"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment