-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
executable file
·32 lines (28 loc) · 932 Bytes
/
index.js
File metadata and controls
executable file
·32 lines (28 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env node
/**
* sculpt-cli
*
* A CLI tool for sculpting WP plugins quickly.
*
* @author badasswp <https://github.com/badasswp>
*/
import cli from './utils/cli.js';
import init from './utils/init.js';
import sculptAsset from './src/asset/index.js';
import sculptMeta from './src/meta/index.js';
import sculptPlugin from './src/plugin/index.js';
import sculptPost from './src/post/index.js';
import sculptService from './src/service/index.js';
import sculptTaxonomy from './src/taxonomy/index.js';
const { flags, input, showHelp } = cli;
const { clear } = flags;
(async () => {
await init({ clear });
input.includes(`asset`) && sculptAsset();
input.includes(`meta`) && sculptMeta();
input.includes(`plugin`) && sculptPlugin();
input.includes(`post`) && sculptPost();
input.includes(`service`) && sculptService();
input.includes(`taxonomy`) && sculptTaxonomy();
input.includes(`help`) && showHelp(0);
})();