From 79bdca04e2cc9e13bbfa1cac7619d5e4a56ff0bd Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 17 Apr 2023 15:05:20 +0200 Subject: Remove SBo differ experiment --- src/command.h | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/command.h (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h deleted file mode 100644 index b168f04..0000000 --- a/src/command.h +++ /dev/null @@ -1,56 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include "package.h" - -namespace katja -{ - class command - { - public: - virtual void execute() const = 0; - }; - - class list final : public command - { - public: - void execute() const override; - }; - - class help final : public command - { - public: - void execute() const override; - }; - - class update final : public command - { - public: - void execute() const override; - }; - - enum class command_exception_t - { - no_command, - too_many_arguments, - unknown_command, - }; - - class command_exception final : public std::exception - { - command_exception_t m_exception_type; - std::vector m_failed_arguments; - - public: - explicit command_exception(const command_exception_t exception_type, - std::vector failed_arguments = {}) noexcept; - - const char *what() const noexcept override; - const std::vector& failed_arguments() const noexcept; - }; - - std::unique_ptr parse_command_line(int argc, char **argv); -} -- cgit v1.2.3