Skip to content

Commit 0dfab85

Browse files
committed
replace setAllVariables.js by glci.js (new entry point)
1 parent 3e1cbdd commit 0dfab85

File tree

3 files changed

+16
-86
lines changed

3 files changed

+16
-86
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"url": "[email protected]:temando/gitlab-ci-variables-cli.git"
1717
},
1818
"bin": {
19-
"setAllVars": "bin/setAllVariables.js"
19+
"glci": "bin/glci.js"
2020
},
21-
"main": "bin/setAllVariables.js",
21+
"main": "bin/glci.js",
2222
"files": [
2323
"bin"
2424
],

src/glci.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env node
2+
3+
import program from 'commander';
4+
5+
program
6+
.version('0.1.0')
7+
.command('sv', 'set a variable')
8+
.command('sav', 'set all variables')
9+
.parse(process.argv);
10+
11+
12+
if (!process.argv.slice(1).length) {
13+
program.outputHelp();
14+
}

src/setAllVariables.js

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

0 commit comments

Comments
 (0)