Skip to content

Commit

Permalink
Changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ktskumar committed Nov 13, 2024
1 parent f9ef7cb commit c03d0e9
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 20 deletions.
4 changes: 2 additions & 2 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const config: Config = {
'client-redirects',
{
createRedirects(routePath) {
if (routePath.includes('/copilot')) {
return [routePath.replace('/copilot', '/chatbot')];
if (routePath.includes('/copilot/copilot-')) {
return [routePath.replace('/copilot/copilot-', '/chatbot/chatbot-')];
}
if (routePath.includes('/entra')) {
return [routePath.replace('/entra', '/aad')];
Expand Down
5 changes: 0 additions & 5 deletions src/m365/pp/commands/copilot/copilot-get.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ describe(commands.COPILOT_GET, () => {
assert.notStrictEqual(command.description, null);
});

it('defines alias', () => {
const alias = command.alias();
assert.notStrictEqual(typeof alias, 'undefined');
});

it('defines correct alias', () => {
const alias = command.alias();
assert.deepStrictEqual(alias, [commands.CHATBOT_GET]);
Expand Down
2 changes: 1 addition & 1 deletion src/m365/pp/commands/copilot/copilot-get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PpCopilotGetCommand extends PowerPlatformCommand {
}

public async commandAction(logger: Logger, args: CommandArgs): Promise<void> {
await this.showDeprecationWarning(logger, "pp chatbot get", "pp copilot get");
await this.showDeprecationWarning(logger, commands.CHATBOT_GET, commands.COPILOT_GET);
if (this.verbose) {
await logger.logToStderr(`Retrieving copilot '${args.options.id || args.options.name}'...`);
}
Expand Down
5 changes: 0 additions & 5 deletions src/m365/pp/commands/copilot/copilot-list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ describe(commands.COPILOT_LIST, () => {
new CommandError(`Resource '' does not exist or one of its queried reference-property objects are not present`));
});

it('defines alias', () => {
const alias = command.alias();
assert.notStrictEqual(typeof alias, 'copilot');
});

it('defines correct alias', () => {
const alias = command.alias();
assert.deepStrictEqual(alias, [commands.CHATBOT_LIST]);
Expand Down
2 changes: 1 addition & 1 deletion src/m365/pp/commands/copilot/copilot-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PpCopilotListCommand extends PowerPlatformCommand {
}

public async commandAction(logger: Logger, args: CommandArgs): Promise<void> {
await this.showDeprecationWarning(logger, "pp chatbot list", "pp copilot list");
await this.showDeprecationWarning(logger, commands.CHATBOT_LIST, commands.COPILOT_LIST);
if (this.verbose) {
await logger.logToStderr(`Retrieving list of copilots for environment '${args.options.environmentName}'.`);
}
Expand Down
5 changes: 0 additions & 5 deletions src/m365/pp/commands/copilot/copilot-remove.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ describe(commands.COPILOT_REMOVE, () => {
assert.notStrictEqual(command.description, null);
});

it('defines alias', () => {
const alias = command.alias();
assert.notStrictEqual(typeof alias, 'undefined');
});

it('defines correct alias', () => {
const alias = command.alias();
assert.deepStrictEqual(alias, [commands.CHATBOT_REMOVE]);
Expand Down
2 changes: 1 addition & 1 deletion src/m365/pp/commands/copilot/copilot-remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class PpCopilotRemoveCommand extends PowerPlatformCommand {
}

public async commandAction(logger: Logger, args: CommandArgs): Promise<void> {
await this.showDeprecationWarning(logger, "pp chatbot remove", "pp copilot remove");
await this.showDeprecationWarning(logger, commands.CHATBOT_REMOVE, commands.COPILOT_REMOVE);
if (this.verbose) {
await logger.logToStderr(`Removing copilot '${args.options.id || args.options.name}'...`);
}
Expand Down

0 comments on commit c03d0e9

Please sign in to comment.