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

          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 FILE_HPP
      10             : #define FILE_HPP
      11             : 
      12             : #include <command.hpp>
      13             : 
      14             : #include <kdb.hpp>
      15             : 
      16             : class FileCommand : public Command
      17             : {
      18             :         kdb::KDB kdb;
      19             : 
      20             : public:
      21             :         FileCommand ();
      22             :         ~FileCommand ();
      23             : 
      24         276 :         virtual std::string getShortOptions () override
      25             :         {
      26         828 :                 return "nN";
      27             :         }
      28             : 
      29         276 :         virtual std::string getSynopsis () override
      30             :         {
      31         828 :                 return "<name>";
      32             :         }
      33             : 
      34         354 :         virtual std::string getShortHelpText () override
      35             :         {
      36        1062 :                 return "Prints the file where a key is located.";
      37             :         }
      38             : 
      39         276 :         virtual std::string getLongHelpText () override
      40             :         {
      41             :                 return "Elektra typically stores configuration in human-readable\n"
      42             :                        "configuration files.\n"
      43             :                        "This tool outputs where the configuration file is and where\n"
      44         828 :                        "keys would be read from.\n";
      45             :         }
      46             : 
      47             :         virtual int execute (Cmdline const & cmdline) override;
      48             : };
      49             : 
      50             : #endif

Generated by: LCOV version 1.13