-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathargs.js
More file actions
35 lines (34 loc) · 769 Bytes
/
args.js
File metadata and controls
35 lines (34 loc) · 769 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
33
34
35
let _uploadDir;
let _upload = false;
let _versionPrefix;
let _command;
let _initBundle;
let _version;
module.exports = {
setArgs: args => {
_command = args._[0];
_upload = args.upload;
_versionPrefix = args.prefix;
_uploadDir = args['upload-dir'] || process.env.FDPLG_UPLOAD_DIR;
_initBundle = args['init-bundle'];
_version = args['plugin-version'];
},
getUploadDir: () => {
return _uploadDir;
},
isUpload: () => {
return !!_upload;
},
getVersionPrefix: () => {
return _versionPrefix;
},
getVersion: () => {
return _version;
},
getInitBundle: () => {
return !!_initBundle;
},
getCommand: () => {
return _command;
}
}