summaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-04-17 15:05:20 +0200
committerEugen Wissner <belka@caraus.de>2023-04-17 15:05:20 +0200
commit79bdca04e2cc9e13bbfa1cac7619d5e4a56ff0bd (patch)
tree1d267c727247c1b20dc113737ce356f3b7fa09a0 /src/command.h
parent34b10f41aa285e423cccb161342b68ae7275da4b (diff)
downloadslackbuilder-79bdca04e2cc9e13bbfa1cac7619d5e4a56ff0bd.tar.gz
Remove SBo differ experiment
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h56
1 files changed, 0 insertions, 56 deletions
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 <iostream>
-#include <cstring>
-#include <memory>
-#include <vector>
-#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<std::string> m_failed_arguments;
-
- public:
- explicit command_exception(const command_exception_t exception_type,
- std::vector<std::string> failed_arguments = {}) noexcept;
-
- const char *what() const noexcept override;
- const std::vector<std::string>& failed_arguments() const noexcept;
- };
-
- std::unique_ptr<command> parse_command_line(int argc, char **argv);
-}