Skip to content

Commit d9cbcb5

Browse files
committed
remove addlogo.js and devTier.js
1 parent ed153fe commit d9cbcb5

File tree

3 files changed

+6
-37
lines changed

3 files changed

+6
-37
lines changed

src/addlogo.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/devTier.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/main.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ const { Command } = require("commander");
22

33
const deref = require("./deref.js");
44
const importMd = require("./importmd.js");
5-
const addLogo = require("./addlogo.js");
65
const genSampleCode = require("./gencode.js");
7-
const devTier = require("./devTier.js");
6+
const patch = require("./patch.js");
87
const replaceInteger = require("./replaceint.js");
98
const groupTag = require("./grouptag.js");
109

@@ -24,21 +23,16 @@ program.command("importmd")
2423
.argument("<md-folder>", "Folder of markdown files to import")
2524
.argument("<gen-md>", "Merged markdown files")
2625
.action(importMd);
27-
program.command("addlogo")
28-
.description("Add a logo to JSON info.x-logo")
29-
.argument("<in-filename>", "Target JSON file")
30-
.argument("<url>", "Logo absolute url")
31-
.argument("<alt>", "Logo alt text")
32-
.argument("<href>", "Logo href")
33-
.action(addLogo);
3426
program.command("gencode")
3527
.description("Generate sample code to JSON as x-code-samples")
3628
.argument("<in-filename>", "Target JSON file")
3729
.action(genSampleCode);
38-
program.command("devtier")
39-
.description("Add sample for creating a dev tier cluster")
30+
program.command("patch")
31+
.description("Apply JSON patch")
32+
.argument("<patch-filename>", "Patch file")
4033
.argument("<in-filename", "Target JSON file")
41-
.action(devTier)
34+
.argument("[out-filename]", "Output JSON file. If not specified, use in-filename.")
35+
.action(patch)
4236
program.command("replaceint")
4337
.description("Replace the example and default value of integer type to number type")
4438
.argument("<in-filename>", "Input JSON file")

0 commit comments

Comments
 (0)