diff options
author | Your Name <you@example.com> | 2021-05-06 14:13:28 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-06 14:13:28 -0400 |
commit | 9f3802690f9dd9452e96d1d7a879291978d66e35 (patch) | |
tree | 6d6c17b39abdb9490119241bc4fc061744b46d7d /src/cmd.h | |
parent | 2a9f262e6db5906db445d465e500d7ba8c90fab3 (diff) | |
download | dmtool-9f3802690f9dd9452e96d1d7a879291978d66e35.tar.gz dmtool-9f3802690f9dd9452e96d1d7a879291978d66e35.tar.bz2 dmtool-9f3802690f9dd9452e96d1d7a879291978d66e35.zip |
Refactoring
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); +} |