Displaying stats about all snippets
To display statistics about all snippets, execute glyph stats --snippets
. Glyph displays something
like this:
1===== Snippets 2-- Total Snippets: 21 3-- Total Used Snippets: 21 4-- Total Unused Snippets: 0 5-- Snippets: 6 bin_params called_on_files coderay filter_by_ext 7 glang htmlcode img_attrs img_file 8 markups only_after_declaration only_defined_through opt 9 referenced_with_path sq_esc unsafe uv 10 rubydoc 11-- Used Snippets: 12 bin_params called_on_files coderay filter_by_ext 13 glang htmlcode img_attrs img_file 14 markups only_after_declaration only_defined_through opt 15 referenced_with_path sq_esc unsafe uv 16 rubydoc
Remarks
- Information on snippet usage and definitions is available only when displaying statistics for a single snippet.
Displaying stats about a single snippet
To display statistics about a single snippet (e.g. rubydoc
), execute
glyph stats --snippet=rubydoc
. Glyph displays something like this:
1===== Snippet 'rubydoc' 2-- Definition: 3------------------- 4http://rubydoc.info/gems/glyph 5------------------- 6-- Total Used Instances: 18 7-- Usage Details: 8 - text/extending/bookmarks_headers.glyph (1) 9 - text/extending/further_reading.glyph (5) 10 - text/extending/internals.glyph (5) 11 - text/extending/macro_def.glyph (3) 12 - text/extending/validators.glyph (1) 13 - text/macros/macros_core.glyph (2) 14 - text/stats/macros.glyph (1)
Remarks
- Nested snippets appear as within the file containing the top-level snippet.