LCOV - code coverage report
Current view: top level - src/tools/kdb - get.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 GET_HPP
      10             : #define GET_HPP
      11             : 
      12             : #include "coloredkdbio.hpp"
      13             : #include <command.hpp>
      14             : #include <kdb.hpp>
      15             : 
      16             : class GetCommand : public Command
      17             : {
      18             : public:
      19             :         GetCommand ();
      20             :         ~GetCommand ();
      21             : 
      22         296 :         virtual std::string getShortOptions () override
      23             :         {
      24         888 :                 return "an";
      25             :         }
      26             : 
      27         296 :         virtual std::string getSynopsis () override
      28             :         {
      29         888 :                 return "<name>";
      30             :         }
      31             : 
      32         374 :         virtual std::string getShortHelpText () override
      33             :         {
      34        1122 :                 return "Get the value of an individual key.";
      35             :         }
      36             : 
      37         296 :         virtual std::string getLongHelpText () override
      38             :         {
      39             :                 return "When the key starts with / a cascading lookup will be done.\n"
      40             :                        "\n"
      41             :                        "Example:\n"
      42             :                        "\n"
      43         888 :                        "   kdb get system/elektra/version/constants/KDB_VERSION\n";
      44             :         }
      45             : 
      46             :         virtual int execute (Cmdline const & cmdline) override;
      47             : };
      48             : 
      49             : #endif

Generated by: LCOV version 1.13