LCOV - code coverage report
Current view: top level - src/tools/kdb - gen.hpp (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 10 10 100.0 %
Date: 2019-09-12 12:28:41 Functions: 5 6 83.3 %

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #ifndef ELEKTRA_GEN_HPP
      10             : #define ELEKTRA_GEN_HPP
      11             : 
      12             : #include "command.hpp"
      13             : #include <kdb.hpp>
      14             : 
      15          87 : class GenCommand : public Command
      16             : {
      17             : public:
      18          87 :         ~GenCommand () override = default;
      19             : 
      20           9 :         std::string getShortOptions () override
      21             :         {
      22          27 :                 return "F";
      23             :         }
      24             : 
      25           9 :         std::string getSynopsis () override
      26             :         {
      27          27 :                 return "<templateName> <parentKey> <outputName> [parameters...]";
      28             :         }
      29             : 
      30          87 :         std::string getShortHelpText () override
      31             :         {
      32         261 :                 return "Execute a code-generator template.";
      33             :         }
      34             : 
      35           9 :         std::string getLongHelpText () override
      36             :         {
      37          27 :                 return "For a list of available templates and their parameters see kdb-gen(1).\n\nOptions:";
      38             :         }
      39             : 
      40             :         int execute (Cmdline const & cmdline) override;
      41             : 
      42             : private:
      43             : };
      44             : 
      45             : #endif // ELEKTRA_GEN_HPP

Generated by: LCOV version 1.13