2015-05-19 21:01:32 +00:00
|
|
|
#ifndef CTOOL_INIT
|
|
|
|
#define CTOOL_INIT
|
2015-05-19 07:01:18 +00:00
|
|
|
|
|
|
|
#include "CToolBase.hpp"
|
2015-05-26 04:42:20 +00:00
|
|
|
#include <stdio.h>
|
2015-05-19 07:01:18 +00:00
|
|
|
|
2015-05-20 05:22:32 +00:00
|
|
|
class CToolInit final : public CToolBase
|
2015-05-19 07:01:18 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-05-20 05:22:32 +00:00
|
|
|
CToolInit(const SToolPassInfo& info)
|
|
|
|
: CToolBase(info)
|
2015-05-19 07:01:18 +00:00
|
|
|
{
|
|
|
|
}
|
2015-05-20 05:22:32 +00:00
|
|
|
|
2015-05-19 07:01:18 +00:00
|
|
|
~CToolInit()
|
|
|
|
{
|
|
|
|
}
|
2015-05-20 05:22:32 +00:00
|
|
|
|
2015-05-26 04:42:20 +00:00
|
|
|
static void Help(CHelpOutput& help)
|
2015-05-20 05:22:32 +00:00
|
|
|
{
|
2015-05-26 04:42:20 +00:00
|
|
|
help.secHead("NAME");
|
|
|
|
help.beginWrap();
|
|
|
|
help.wrap("hecl-init - Initialize a brand-new project database\n");
|
|
|
|
help.endWrap();
|
|
|
|
|
|
|
|
help.secHead("SYNOPSIS");
|
|
|
|
help.beginWrap();
|
|
|
|
help.wrap("hecl init [<dir>]\n");
|
|
|
|
help.endWrap();
|
|
|
|
|
|
|
|
help.secHead("DESCRIPTION");
|
|
|
|
help.beginWrap();
|
|
|
|
help.wrap("Creates a ");
|
|
|
|
help.wrapBold(".hecl");
|
|
|
|
help.wrap(" directory within the selected directory with an initialized database index. "
|
|
|
|
"This constitutes an empty HECL project, ready for making stuff!!\n");
|
|
|
|
help.endWrap();
|
|
|
|
|
|
|
|
help.secHead("OPTIONS");
|
|
|
|
help.optionHead("<dir>", "group directory path");
|
|
|
|
help.beginWrap();
|
|
|
|
help.wrap("Directory to create new project database in. If not specified, current directory is used.\n");
|
|
|
|
help.endWrap();
|
2015-05-20 05:22:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::string toolName() const {return "init";}
|
|
|
|
|
|
|
|
int run()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2015-05-19 07:01:18 +00:00
|
|
|
};
|
2015-05-19 21:01:32 +00:00
|
|
|
|
|
|
|
#endif // CTOOL_INIT
|