-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (29 loc) · 1 KB
/
index.js
File metadata and controls
33 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const OpsCommand = require("./lib/command");
const DeployCommand = require("./lib/commands/deploy");
const ParamCommand = require("./lib/commands/param");
const SetupCommand = require("./lib/commands/setup");
const StatusCommand = require("./lib/commands/status");
/**
* I'm responsible for the infrastructure and governance side of Miles.
*/
const plugin = async function opsPluginStart(builder) {
builder
.register("plugin.ops.command.deploy", () => new DeployCommand())
.register("plugin.ops.command.param", () => new ParamCommand())
.register(
"plugin.ops.command.setup",
async (c) => await SetupCommand.create(c)
)
.register("plugin.ops.command.status", () => new StatusCommand())
.register("plugin.ops.command", async (c) => await OpsCommand.create(c), [
"commander-visitor",
]);
return {
name: "Ops",
version: "0.2.0",
description: "Control a Miles deployment",
author: "LibreWorks",
};
};
plugin.MILES_PLUGIN_API = 1;
module.exports = plugin;