diff options
Diffstat (limited to 'src/cmd.h')
-rw-r--r-- | src/cmd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h new file mode 100644 index 0000000..6a8b738 --- /dev/null +++ b/src/cmd.h @@ -0,0 +1,28 @@ +#pragma once +#include <vector> +#include <string> +#include <filesystem> + +namespace cmd { + // Corresponds to commands + std::string usage(const std::string& exename); + std::string list(std::vector<std::string> args); + std::string mkdir(std::vector<std::string> args); + std::string cp(std::vector<std::string> args); + std::string mv(std::vector<std::string> args); + std::string rm(std::vector<std::string> args); + std::string attacks(std::vector<std::string> args); + std::string roll(std::vector<std::string> args); + std::string heal(std::vector<std::string> args); + std::string damage(std::vector<std::string> args, std::vector<std::string> flags); + std::string reset(std::vector<std::string> args); + std::string set(std::vector<std::string> args); + std::string add(std::vector<std::string> args); + std::string del(std::vector<std::string> args); + + // Command-centric helpers + + // Not idempotent: only do once! + std::filesystem::path getTruePath(std::filesystem::path virtPath); + std::vector<std::string> getVirtDirs(void); +} |