@@ -2,9 +2,8 @@ const { Command } = require("commander");
2
2
3
3
const deref = require ( "./deref.js" ) ;
4
4
const importMd = require ( "./importmd.js" ) ;
5
- const addLogo = require ( "./addlogo.js" ) ;
6
5
const genSampleCode = require ( "./gencode.js" ) ;
7
- const devTier = require ( "./devTier .js" ) ;
6
+ const patch = require ( "./patch .js" ) ;
8
7
const replaceInteger = require ( "./replaceint.js" ) ;
9
8
const groupTag = require ( "./grouptag.js" ) ;
10
9
@@ -24,21 +23,16 @@ program.command("importmd")
24
23
. argument ( "<md-folder>" , "Folder of markdown files to import" )
25
24
. argument ( "<gen-md>" , "Merged markdown files" )
26
25
. 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 ) ;
34
26
program . command ( "gencode" )
35
27
. description ( "Generate sample code to JSON as x-code-samples" )
36
28
. argument ( "<in-filename>" , "Target JSON file" )
37
29
. 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" )
40
33
. 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 )
42
36
program . command ( "replaceint" )
43
37
. description ( "Replace the example and default value of integer type to number type" )
44
38
. argument ( "<in-filename>" , "Input JSON file" )
0 commit comments