Initial commit

This commit is contained in:
2024-12-02 06:30:40 +00:00
commit fd62fb822d
33 changed files with 1972 additions and 0 deletions

21
include/cmd/cmd_date.hpp Normal file
View File

@ -0,0 +1,21 @@
#pragma once
#include <ctime>
#include <iomanip>
#include "cmd/cmd_base.hpp"
namespace fsh {
class CmdDate : public Command {
protected:
virtual void run(std::istream& in, std::ostream& out, ArgManager& args) override {
std::time_t time = std::time(nullptr);
out << std::asctime(std::localtime(&time));
}
};
}