LCOV - code coverage report
Current view: top level - src/tools/kdb - export.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 EXPORT_H
      10             : #define EXPORT_H
      11             : 
      12             : #include "coloredkdbio.hpp"
      13             : #include <command.hpp>
      14             : #include <kdb.hpp>
      15             : 
      16             : class ExportCommand : public Command
      17             : {
      18             :         kdb::KDB kdb;
      19             :         kdb::KeySet ks;
      20             : 
      21             : public:
      22             :         ExportCommand ();
      23             :         ~ExportCommand ();
      24             : 
      25         780 :         virtual std::string getShortOptions () override
      26             :         {
      27        2340 :                 return "Ec";
      28             :         }
      29             : 
      30         780 :         virtual std::string getSynopsis () override
      31             :         {
      32        2340 :                 return "<source> [<format>]";
      33             :         }
      34             : 
      35         858 :         virtual std::string getShortHelpText () override
      36             :         {
      37        2574 :                 return "Export configuration from the key database.";
      38             :         }
      39             : 
      40         780 :         virtual std::string getLongHelpText () override
      41             :         {
      42             :                 return "The export utility allows you to export\n"
      43        2340 :                        "all or parts of the configuration to stdout.\n";
      44             :         }
      45             : 
      46             :         virtual int execute (Cmdline const & cmdline) override;
      47             : };
      48             : 
      49             : #endif

Generated by: LCOV version 1.13