aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-06 15:12:39 -0400
committerYour Name <you@example.com>2021-05-06 15:12:39 -0400
commit5ed030a38810e4a3bb9c969db6892065581340c6 (patch)
treeeac8fa93a221d7b4cbccacd18adf7cb83282e04f /src/cmd.h
parent9f3802690f9dd9452e96d1d7a879291978d66e35 (diff)
downloaddmtool-5ed030a38810e4a3bb9c969db6892065581340c6.tar.gz
dmtool-5ed030a38810e4a3bb9c969db6892065581340c6.tar.bz2
dmtool-5ed030a38810e4a3bb9c969db6892065581340c6.zip
Implemented edit method
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/cmd.h b/src/cmd.h
index 6a8b738..92a3cc3 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -5,20 +5,29 @@
namespace cmd {
// Corresponds to commands
+
+ // Usage gets a category of its own
std::string usage(const std::string& exename);
+
+ // Filesystem operations
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);
+
+ // Manipulators
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);
+ std::string edit(std::vector<std::string> args);
+
+ //Queries
+ std::string attacks(std::vector<std::string> args);
+ std::string roll(std::vector<std::string> args);
// Command-centric helpers