all repos — h3rald @ 85abf5c629c64f65112928c2737db6a27e82129e

The sources of https://h3rald.com

content/glyph/book/stats/snippets.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
-----
permalink: stats_snippets
title: Glyph – Snippet Statistics
type: page
-----
<nav class="navigation"><a href="/glyph/book/stats/macros.html">← Macro Statistics</a> | <a href="/glyph/book/index.html">Contents</a> | <a href="/glyph/book/stats/bookmarks.html">Bookmark Statistics →</a></nav>

  <section class="section">
<header><h1 id="h_67" class="toc">Displaying stats about all snippets</h1></header>
<p>To display statistics about all snippets, execute <code>glyph stats --snippets</code>. Glyph displays something like this:</p>
    <div class="CodeRay">
  <div class="code"><pre><span class="line-numbers"> <a href="#n1" name="n1">1</a></span>===== Snippets
<span class="line-numbers"> <a href="#n2" name="n2">2</a></span>-- Total Snippets: 21
<span class="line-numbers"> <a href="#n3" name="n3">3</a></span>-- Total Used Snippets: 21
<span class="line-numbers"> <a href="#n4" name="n4">4</a></span>-- Total Unused Snippets: 0
<span class="line-numbers"> <a href="#n5" name="n5">5</a></span>-- Snippets:
<span class="line-numbers"> <a href="#n6" name="n6">6</a></span>     bin_params             called_on_files        coderay                filter_by_ext
<span class="line-numbers"> <a href="#n7" name="n7">7</a></span>     glang                  htmlcode               img_attrs              img_file    
<span class="line-numbers"> <a href="#n8" name="n8">8</a></span>     markups                only_after_declaration only_defined_through   opt        
<span class="line-numbers"> <a href="#n9" name="n9">9</a></span>     referenced_with_path   sq_esc                 unsafe                 uv        
<span class="line-numbers"><strong><a href="#n10" name="n10">10</a></strong></span>     rubydoc                 
<span class="line-numbers"><a href="#n11" name="n11">11</a></span>-- Used Snippets:
<span class="line-numbers"><a href="#n12" name="n12">12</a></span>     bin_params             called_on_files        coderay                filter_by_ext
<span class="line-numbers"><a href="#n13" name="n13">13</a></span>     glang                  htmlcode               img_attrs              img_file    
<span class="line-numbers"><a href="#n14" name="n14">14</a></span>     markups                only_after_declaration only_defined_through   opt        
<span class="line-numbers"><a href="#n15" name="n15">15</a></span>     referenced_with_path   sq_esc                 unsafe                 uv        
<span class="line-numbers"><a href="#n16" name="n16">16</a></span>     rubydoc</pre></div>
</div>

    <section class="section">
<header><h1 id="h_68" class="toc">Remarks</h1></header>
<ul>
	<li>Information on snippet usage and definitions is available only when displaying statistics for a single snippet.</li>
</ul>

</section>

</section>

  <section class="section">
<header><h1 id="h_69" class="toc">Displaying stats about a single snippet</h1></header>
<p>To display statistics about a single snippet (e.g. <code>rubydoc</code>), execute <code>glyph stats --snippet=rubydoc</code>. Glyph displays something like this:</p>
    <div class="CodeRay">
  <div class="code"><pre><span class="line-numbers"> <a href="#n1" name="n1">1</a></span>===== Snippet 'rubydoc'
<span class="line-numbers"> <a href="#n2" name="n2">2</a></span>-- Definition:
<span class="line-numbers"> <a href="#n3" name="n3">3</a></span>-------------------
<span class="line-numbers"> <a href="#n4" name="n4">4</a></span>http://rubydoc.info/gems/glyph
<span class="line-numbers"> <a href="#n5" name="n5">5</a></span>-------------------
<span class="line-numbers"> <a href="#n6" name="n6">6</a></span>-- Total Used Instances: 18
<span class="line-numbers"> <a href="#n7" name="n7">7</a></span>-- Usage Details:
<span class="line-numbers"> <a href="#n8" name="n8">8</a></span>   - text/extending/bookmarks_headers.glyph (1)
<span class="line-numbers"> <a href="#n9" name="n9">9</a></span>   - text/extending/further_reading.glyph (5)
<span class="line-numbers"><strong><a href="#n10" name="n10">10</a></strong></span>   - text/extending/internals.glyph (5)
<span class="line-numbers"><a href="#n11" name="n11">11</a></span>   - text/extending/macro_def.glyph (3)
<span class="line-numbers"><a href="#n12" name="n12">12</a></span>   - text/extending/validators.glyph (1)
<span class="line-numbers"><a href="#n13" name="n13">13</a></span>   - text/macros/macros_core.glyph (2)
<span class="line-numbers"><a href="#n14" name="n14">14</a></span>   - text/stats/macros.glyph (1)</pre></div>
</div>

    <section class="section">
<header><h1 id="h_70" class="toc">Remarks</h1></header>
<ul>
	<li>Nested snippets appear as within the file containing the top-level snippet.</li>
</ul>

</section>

</section>
<nav class="navigation"><a href="/glyph/book/stats/macros.html">← Macro Statistics</a> | <a href="/glyph/book/index.html">Contents</a> | <a href="/glyph/book/stats/bookmarks.html">Bookmark Statistics →</a></nav>