Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI feature by decorator #147

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c856072
Add CLI can run base cmd
mdsb100 Aug 13, 2018
71c91da
cli make sub command
mdsb100 Aug 13, 2018
d7a12cc
Add `gitlab-users current` command
mdsb100 Aug 13, 2018
3026543
CLI finish Users
mdsb100 Aug 13, 2018
c577864
Try to inhert super cli
mdsb100 Aug 14, 2018
2c40ac3
add ignore
mdsb100 Aug 14, 2018
ae73a59
Add cli decorator in templates and services
mdsb100 Aug 14, 2018
a661244
Add all decorators for CLI
mdsb100 Aug 14, 2018
89d05e6
Finish build bin script
mdsb100 Aug 14, 2018
12902be
Modify CLI usage
mdsb100 Aug 14, 2018
1e7c7b1
Modify README.md
mdsb100 Aug 14, 2018
a7e1646
Update README.md
mdsb100 Aug 14, 2018
292b193
Update README.md
mdsb100 Aug 15, 2018
b5f560f
Update CLI
mdsb100 Aug 15, 2018
32bf3ce
Merge branch 'master' into cli
mdsb100 Aug 15, 2018
766e38f
Fix package-lock.json
mdsb100 Aug 15, 2018
eb501e9
Refactor build_bin by using Promise.all
mdsb100 Aug 15, 2018
4c17c27
chang CLI config path
mdsb100 Aug 15, 2018
ee0be2d
Make CI green again (#150)
pablobirukov Aug 14, 2018
e277245
chore: eslint does not like CRLF (#151)
jetersen Aug 14, 2018
4d3f86e
chore: Fixed wrong wait import (#149)
pablobirukov Aug 14, 2018
b872b3e
chore(release): 3.8.0 [skip ci]
semantic-release-bot Aug 14, 2018
88d4ac2
Merge branch 'master' into cli
mdsb100 Aug 17, 2018
b2a6581
Make CI green again (#150)
pablobirukov Aug 14, 2018
00cfa2f
chore: eslint does not like CRLF (#151)
jetersen Aug 14, 2018
6e1dbd8
chore: Fixed wrong wait import (#149)
pablobirukov Aug 14, 2018
67a6b6f
chore(release): 3.8.0 [skip ci]
semantic-release-bot Aug 14, 2018
cabacd2
chore: add prepush linting (#152)
jetersen Aug 15, 2018
a074452
fix: Handling errors before retrying request (#142) [skip-ci]
jdalrymple Aug 15, 2018
0339bda
feat: Add deploy keys enable functionality (#155) thanks to [Michael …
Aug 15, 2018
bf2b288
fix: Fix error while throwing an error in RequestHelper (#156)
jdalrymple Aug 15, 2018
d06912b
fix: Linting Master (#157)
jetersen Aug 15, 2018
487a493
chore(release): 3.9.0 [skip ci]
semantic-release-bot Aug 15, 2018
8c95a3e
feat: Expose reject unauthorized in request helper (#160)
jetersen Aug 15, 2018
6ae7ca7
chore(release): 3.10.0 [skip ci]
semantic-release-bot Aug 15, 2018
aeed838
Update babel7 to the latest version 🚀 (#158)
greenkeeper[bot] Aug 16, 2018
5ed15dc
fix: Typo in PagesDomains all() method (#162)
CraigAllardyce Aug 16, 2018
05a8bfc
chore(release): 3.10.1 [skip ci]
semantic-release-bot Aug 16, 2018
6718b80
Merge branch 'master' into cli
mdsb100 Aug 17, 2018
bc70b57
Fix spell mistake
mdsb100 Aug 17, 2018
fcde3eb
Merge branch 'master' into cli
mdsb100 Aug 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
}]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
"@babel/plugin-proposal-object-rest-spread",
["@babel/plugin-proposal-decorators", { "legacy": true }],
],
"env": {
"es5": {
Expand All @@ -19,6 +20,7 @@
"plugins": [
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-decorators", { "legacy": true }],
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
npm-debug.log
dist
coverage
.vscode
bin
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [Docs](#docs)
- [Development](#development)
- [Testing](#testing)
- [CLI](#cli)
- [Contributors](#contributors)
- [License](#licence)
- [Changelog](#changelog)
Expand Down Expand Up @@ -448,6 +449,19 @@ PERSONAL_ACCESS_TOKEN='abcdefg' GITLAB_URL='http://localhost:8080' npm run test

> Note it may take about 3 minutes to get the variables while Gitlab is starting up in the container

## CLI
```bash
npm install -g node-gitlab
```

```bash
# ES6 (>=node 8.0.0)
gitlab
// ES5
gitlabe5
```

[git-style-sub-commands](https://github.com/tj/commander.js#git-style-sub-commands)

## Contributors

Expand Down Expand Up @@ -486,6 +500,7 @@ This started off as a fork from [node-gitlab](https://github.com/node-gitlab/nod
- [Norm MacLennan](https://github.com/maclennann)
- [jnovick](https://github.com/jnovick)
- [Fabian Aussems](https://github.com/mozinator)
- [mdsb100](https://github.com/mdsb100)

## License

Expand Down
Loading