2020-04-10 03:19:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ToolBase.hpp"
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
class ToolInstallAddon final : public ToolBase {
|
|
|
|
public:
|
|
|
|
explicit ToolInstallAddon(const ToolPassInfo& info) : ToolBase(info) {}
|
|
|
|
|
|
|
|
int run() override {
|
|
|
|
hecl::blender::SharedBlenderToken.getBlenderConnection();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void Help(HelpOutput& help) {
|
2021-06-30 18:20:45 +00:00
|
|
|
help.secHead("NAME");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.beginWrap();
|
2021-06-30 18:20:45 +00:00
|
|
|
help.wrap("hecl-installaddon - Installs embedded Blender addon into local Blender\n");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.endWrap();
|
|
|
|
|
2021-06-30 18:20:45 +00:00
|
|
|
help.secHead("SYNOPSIS");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.beginWrap();
|
2021-06-30 18:20:45 +00:00
|
|
|
help.wrap("hecl installaddon\n");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.endWrap();
|
|
|
|
|
2021-06-30 18:20:45 +00:00
|
|
|
help.secHead("DESCRIPTION");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.beginWrap();
|
2021-06-30 18:20:45 +00:00
|
|
|
help.wrap("Installs the hecl Blender addon into Blender. The path to the blender executable "
|
|
|
|
"can be overridden by setting the BLENDER_BIN environment variable.");
|
2020-04-10 03:19:33 +00:00
|
|
|
help.endWrap();
|
|
|
|
}
|
|
|
|
|
2021-06-30 18:20:45 +00:00
|
|
|
std::string_view toolName() const override { return "installaddon"sv; }
|
2020-04-10 03:19:33 +00:00
|
|
|
};
|