Skip to content

Commit

Permalink
Rename "bash completion" to "tab completion"
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow committed Feb 19, 2021
1 parent c090490 commit 8e75335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Run gitlab pipelines locally as shell executor or docker executor.

Get rid of all those dev specific shell scripts and make files.

[![Lines](https://img.shields.io/badge/Coverage-91.09%25-brightgreen.svg)](https://npmjs.org/package/gitlab-ci-local)
[![Lines](https://img.shields.io/badge/Coverage-91.1%25-brightgreen.svg)](https://npmjs.org/package/gitlab-ci-local)
[![build](https://img.shields.io/github/workflow/status/firecow/gitlab-ci-local/build)](https://npmjs.org/package/gitlab-ci-local)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=firecow_gitlab-ci-local&metric=alert_status)](https://sonarcloud.io/dashboard?id=firecow_gitlab-ci-local)
[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/firecow/gitlab-ci-local)](https://npmjs.org/package/gitlab-ci-local)
Expand All @@ -23,7 +23,7 @@ Get rid of all those dev specific shell scripts and make files.
* [Installation](#installation)
* [Convinience](#convinience)
* [Bash alias](#bash-alias)
* [Bash completion](#bash-completion)
* [Tab completion](#tab-completion)
* [Quirks](#quirks)
* [User Variables](#user-variables)
* [Decorators](#decorators)
Expand Down Expand Up @@ -70,7 +70,7 @@ exit
echo "alias gcl='gitlab-ci-local'" >> ~/.bashrc
```

### Bash completion
### Tab completion

```bash
gitlab-ci-local --completion >> ~/.bashrc
Expand Down
4 changes: 2 additions & 2 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{"total": {"lines":{"total":697,"covered":634,"skipped":0,"pct":90.96},"statements":{"total":721,"covered":652,"skipped":0,"pct":90.43},"functions":{"total":115,"covered":102,"skipped":0,"pct":88.7},"branches":{"total":400,"covered":320,"skipped":0,"pct":80}}
{"total": {"lines":{"total":697,"covered":635,"skipped":0,"pct":91.1},"statements":{"total":721,"covered":653,"skipped":0,"pct":90.57},"functions":{"total":115,"covered":102,"skipped":0,"pct":88.7},"branches":{"total":400,"covered":320,"skipped":0,"pct":80}}
,"/home/mjn/Workspace/gitlab-ci-local/src/commander.ts": {"lines":{"total":109,"covered":94,"skipped":0,"pct":86.24},"functions":{"total":13,"covered":10,"skipped":0,"pct":76.92},"statements":{"total":117,"covered":99,"skipped":0,"pct":84.62},"branches":{"total":63,"covered":48,"skipped":0,"pct":76.19}}
,"/home/mjn/Workspace/gitlab-ci-local/src/default-cmd.ts": {"lines":{"total":44,"covered":40,"skipped":0,"pct":90.91},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":44,"covered":40,"skipped":0,"pct":90.91},"branches":{"total":20,"covered":16,"skipped":0,"pct":80}}
,"/home/mjn/Workspace/gitlab-ci-local/src/job-expanders.ts": {"lines":{"total":56,"covered":55,"skipped":0,"pct":98.21},"functions":{"total":12,"covered":12,"skipped":0,"pct":100},"statements":{"total":56,"covered":55,"skipped":0,"pct":98.21},"branches":{"total":54,"covered":51,"skipped":0,"pct":94.44}}
,"/home/mjn/Workspace/gitlab-ci-local/src/job.ts": {"lines":{"total":201,"covered":186,"skipped":0,"pct":92.54},"functions":{"total":38,"covered":33,"skipped":0,"pct":86.84},"statements":{"total":209,"covered":191,"skipped":0,"pct":91.39},"branches":{"total":105,"covered":89,"skipped":0,"pct":84.76}}
,"/home/mjn/Workspace/gitlab-ci-local/src/parser.ts": {"lines":{"total":191,"covered":167,"skipped":0,"pct":87.43},"functions":{"total":22,"covered":20,"skipped":0,"pct":90.91},"statements":{"total":194,"covered":170,"skipped":0,"pct":87.63},"branches":{"total":109,"covered":75,"skipped":0,"pct":68.81}}
,"/home/mjn/Workspace/gitlab-ci-local/src/parser.ts": {"lines":{"total":191,"covered":168,"skipped":0,"pct":87.96},"functions":{"total":22,"covered":20,"skipped":0,"pct":90.91},"statements":{"total":194,"covered":171,"skipped":0,"pct":88.14},"branches":{"total":109,"covered":75,"skipped":0,"pct":68.81}}
,"/home/mjn/Workspace/gitlab-ci-local/src/stage.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/mjn/Workspace/gitlab-ci-local/src/state.ts": {"lines":{"total":22,"covered":22,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":25,"covered":25,"skipped":0,"pct":100},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
,"/home/mjn/Workspace/gitlab-ci-local/src/utils.ts": {"lines":{"total":66,"covered":62,"skipped":0,"pct":93.94},"functions":{"total":15,"covered":13,"skipped":0,"pct":86.67},"statements":{"total":66,"covered":62,"skipped":0,"pct":93.94},"branches":{"total":41,"covered":35,"skipped":0,"pct":85.37}}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ process.on('unhandledRejection', e => {
.option("manual", {type: "array", description: "One or more manual jobs to run during a pipeline", requiresArg: true})
.option("list", {type: "string", description: "List jobs and job information", requiresArg: false})
.option("cwd", {type: "string", description: "Path to a gitlab-ci.yml", requiresArg: true})
.option("completion", {type: "string", description: "Generate bash completion script", requiresArg: false})
.option("completion", {type: "string", description: "Generate tab completion script", requiresArg: false})
.option("needs", {type: "boolean", description: "Run needed jobs, when executing a single job", requiresArg: false})
.completion("completion", false, async (_, yargsArgv) => {
try {
Expand Down

0 comments on commit 8e75335

Please sign in to comment.