aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.h
blob: b5d3d72ed59b9a4252f433ad3285eec766d2f96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <vector>
#include <string>
#include <filesystem>

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);

    // 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);
    std::string spellcasting(std::vector<std::string> args);
    std::string git(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
    
    // Not idempotent: only do once!
    std::filesystem::path getTruePath(std::filesystem::path virtPath);
    std::vector<std::string> getVirtDirs(void);
}