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 a3a76e9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 155 deletions.
18 changes: 0 additions & 18 deletions src/commands/analysis.command.ts

This file was deleted.

16 changes: 0 additions & 16 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";

Check failure on line 1 in src/content-cli-pull.ts

View workflow job for this annotation

GitHub Actions / Npm install and npm build

Property 'analysis' does not exist on type 'typeof Pull'.
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
15 changes: 0 additions & 15 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
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 a3a76e9

Please sign in to comment.