Skip to content

Commit

Permalink
[DV-5681] Remove analysis push and pull
Browse files Browse the repository at this point in the history
  • Loading branch information
abdibayev committed Apr 16, 2024
1 parent 5cb44be commit 7bccb46
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 157 deletions.
18 changes: 0 additions & 18 deletions src/commands/analysis.command.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/content-cli-pull.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AnalysisCommand } from "./commands/analysis.command";
import { SkillCommand } from "./commands/skill.command";
import { ObjectiveCommand } from "./commands/objective.command";
import { DataPoolCommand } from "./commands/data-pool.command";
Expand All @@ -10,21 +9,6 @@ import commander = require("commander");
type CommanderStatic = commander.CommanderStatic;

class Pull {
public static analysis(program: CommanderStatic): CommanderStatic {
program
.command("analysis")
.description("Command to pull an analysis")
.option("-p, --profile <profile>", "Profile which you want to use to pull the analysis")
.requiredOption("--id <id>", "Id of the analysis you want to pull")
.option("--asset", "Pull workflow as an asset")
.action(async cmd => {
await new AnalysisCommand().pullAnalysis(cmd.profile, cmd.id, !!cmd.asset);
process.exit();
});

return program;
}

public static analysisBookmarks(program: CommanderStatic): CommanderStatic {
program
.command("bookmarks")
Expand Down Expand Up @@ -115,7 +99,6 @@ class Pull {
}
}

Pull.analysis(commander);
Pull.analysisBookmarks(commander);
Pull.skill(commander);
Pull.objective(commander);
Expand Down
16 changes: 0 additions & 16 deletions src/content-cli-push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as commander from "commander";
import * as fs from "fs";
import * as path from "path";

import { AnalysisCommand } from "./commands/analysis.command";
import { SkillCommand } from "./commands/skill.command";
import { WidgetCommand } from "./commands/widget.command";
import { DataPoolCommand } from "./commands/data-pool.command";
Expand All @@ -17,20 +16,6 @@ import { GracefulError, logger } from "./util/logger";
type CommanderStatic = commander.CommanderStatic;

class Push {
public static analysis(program: CommanderStatic): CommanderStatic {
program
.command("analysis")
.description("Command to push an analysis to a workspace")
.option("-p, --profile <profile>", "Profile which you want to use to push the analysis")
.requiredOption("--workspaceId <workspaceId>", "Id of the workspace to which you want to push the analysis")
.requiredOption("-f, --file <file>", "The file you want to push")
.action(async cmd => {
await new AnalysisCommand().pushAnalysis(cmd.profile, cmd.workspaceId, cmd.file);
process.exit();
});

return program;
}

public static analysisBookmarks(program: CommanderStatic): CommanderStatic {
program
Expand Down Expand Up @@ -233,7 +218,6 @@ class Push {
}
}

Push.analysis(commander);
Push.analysisBookmarks(commander);
Push.ctp(commander);
Push.skill(commander);
Expand Down
25 changes: 0 additions & 25 deletions src/content/factory/analysis-manager.factory.ts

This file was deleted.

81 changes: 0 additions & 81 deletions src/content/manager/analysis.manager.ts

This file was deleted.

0 comments on commit 7bccb46

Please sign in to comment.