---
to: "{{ project_name }}/src/cmds/mod.rs"
sparql:
  nouns: |
    PREFIX cli: <http://ggen.dev/schema/cli#>
    PREFIX cnv: <http://ggen.dev/schema/clap-noun-verb#>
    SELECT ?nounName ?nounDescription ?modulePath
    WHERE {
      ?project a cli:CliProject ;
               cli:hasNoun ?noun .
      ?noun cnv:nounName ?nounName ;
            cnv:nounDescription ?nounDescription ;
            cnv:nounModulePath ?modulePath .
    }
    ORDER BY ?nounName
---
//! CLI command definitions
//! Commands are auto-discovered by clap-noun-verb from #[verb] attributes

{% for noun in sparql_results.nouns %}pub mod {{ noun.nounName }};
{% endfor %}
