forked from OfficeDev/microsoft-365-agents-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.ts
More file actions
29 lines (28 loc) · 945 Bytes
/
Copy pathadd.ts
File metadata and controls
29 lines (28 loc) · 945 Bytes
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { CLICommand } from "@microsoft/teamsfx-api";
import { featureFlagManager, FeatureFlags } from "@microsoft/teamsfx-core";
import { commands } from "../../resource";
import { addSPFxWebpartCommand } from "./addSPFxWebpart";
import { addPluginCommand } from "./addPlugin";
import { addAuthConfigCommand } from "./addAuthConfig";
import { addCapabilityCommand } from "./addCapability";
import { addSkillCommand } from "./addSkill";
const adjustCommands = (): CLICommand[] => {
return [
addSPFxWebpartCommand,
addPluginCommand,
addAuthConfigCommand,
addCapabilityCommand,
...(featureFlagManager.getBooleanValue(FeatureFlags.AgentSkillsEnabled)
? [addSkillCommand]
: []),
];
};
export function addCommand(): CLICommand {
return {
name: "add",
description: commands.add.description,
commands: adjustCommands(),
};
}