#pragma once #include #include "vfs.h" class CommandProcessor; class NetworkManager; namespace api { /* FILESYSTEM ACTIONS. */ vfs_node* get_current_dir(CommandProcessor& context); std::string rm(CommandProcessor& context, const std::string& filename); std::string write_file(CommandProcessor& context, const std::string& filename, const std::string& content); std::string ls(CommandProcessor& context); std::string cd(CommandProcessor& context, const std::string& path); std::string scp(CommandProcessor& context, const std::string& source, const std::string& destination); /* NETWORK ACTIONS. */ std::string ssh(CommandProcessor& context, const std::string& ip); std::string nmap(CommandProcessor& context, const std::string& ip); std::string disconnect(CommandProcessor& context); /* SYSTEM ACTIONS. */ std::string close_terminal(CommandProcessor& context); } /* namespace api */