Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DV-5681: Remove analysis push and pull #181

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading