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

Generated by: LCOV version 1.13