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

20
include/cmd/cmd_time.hpp Normal file
View File

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